Skip to content

Round off probability to 2 decimals.#9365

Merged
pvizeli merged 3 commits into
home-assistant:devfrom
arsaboo:dev
Sep 11, 2017
Merged

Round off probability to 2 decimals.#9365
pvizeli merged 3 commits into
home-assistant:devfrom
arsaboo:dev

Conversation

@arsaboo
Copy link
Copy Markdown
Contributor

@arsaboo arsaboo commented Sep 10, 2017

Currently, the sensor returns a long probability value:

image

Not sure if we need so many decimal places. Rounding it off to 2 decimals seems more useful.

@MartinHjelmare
Copy link
Copy Markdown
Member

You have to update the tests too, since they are using the state attributes.

@MartinHjelmare
Copy link
Copy Markdown
Member

@jlmcgehee21 is this ok?

@jlmcgehee21
Copy link
Copy Markdown
Contributor

👍 thanks @arsaboo and @MartinHjelmare. I've got quite a few things going on personally (work, school, etc.) but I do have plans to continue supporting this feature and adding improvements where possible.

@arsaboo arsaboo closed this Sep 11, 2017
@arsaboo arsaboo reopened this Sep 11, 2017
@pvizeli pvizeli merged commit c7ecebf into home-assistant:dev Sep 11, 2017
@balloob balloob mentioned this pull request Sep 22, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants