Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors have too much precision. #163

Closed
vlebourl opened this issue Jul 23, 2020 · 1 comment
Closed

Sensors have too much precision. #163

vlebourl opened this issue Jul 23, 2020 · 1 comment
Labels
bug Something isn't working platform: sensor

Comments

@vlebourl
Copy link
Collaborator

Describe the bug

Sensors report their values with full precision, making it hard to read

Expected behavior
limit to 2 digits precision.

Screenshots
image
image

Environment (please complete the following information):

  • Home Assistant version: 0.112.4
  • Platform: sensor
  • ha-tahoma: master (pre 1.7.0)

Device: (if your problem is related to a specific device)
Seen with io:TemperatureIOSystemSensor, somfythermostat:SomfyThermostatTemperatureSensor and somfythermostat:SomfyThermostatHumiditySensor

@vlebourl vlebourl added bug Something isn't working platform: sensor labels Jul 23, 2020
vlebourl added a commit that referenced this issue Jul 23, 2020
vlebourl added a commit that referenced this issue Jul 23, 2020
vlebourl added a commit that referenced this issue Jul 23, 2020
* Round float state to 2 digits.

Github Issue: #163
iMicknl added a commit that referenced this issue Jul 23, 2020
commit 6caeb9a
Author: Vincent Le Bourlot <vlebourl@gmail.com>
Date:   Thu Jul 23 13:21:40 2020 +0200

    Round float state to 2 digits. (#164)

    * Round float state to 2 digits.

    Github Issue: #163

commit e6b4c22
Author: Vincent Le Bourlot <vlebourl@gmail.com>
Date:   Thu Jul 23 11:50:11 2020 +0200

    Cover position was incorrectly inverted when 0 because bool(0) == False. (#165)

commit 05cd609
Author: Vincent Le Bourlot <vlebourl@gmail.com>
Date:   Thu Jul 23 08:27:39 2020 +0200

    Enhancement/refactor climate (#159)

    * First commit for AtlanticElectricalHeater.
    Github Issue: #151

    * Refactored climate.
    * **Breaking** Removed options flow
    * **Breaking** Removed SUPPORT_TARGET_TEMPERATURE for AtlanticElectricalHeater IO component
    * Removed private properties.
    * Removed update methods.
    * Removed __init__ when possible.
    * Moved classes to their own files.
    * Add DimmerExteriorHeating

    Github Issue: #151

    * Fix/fix 161 (#162)

    Github Issue: #161
iMicknl added a commit that referenced this issue Jul 23, 2020
commit 1de0940
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Thu Jul 23 22:21:56 2020 +0200

    Squashed commit of the following:

    commit 6caeb9a
    Author: Vincent Le Bourlot <vlebourl@gmail.com>
    Date:   Thu Jul 23 13:21:40 2020 +0200

        Round float state to 2 digits. (#164)

        * Round float state to 2 digits.

        Github Issue: #163

    commit e6b4c22
    Author: Vincent Le Bourlot <vlebourl@gmail.com>
    Date:   Thu Jul 23 11:50:11 2020 +0200

        Cover position was incorrectly inverted when 0 because bool(0) == False. (#165)

    commit 05cd609
    Author: Vincent Le Bourlot <vlebourl@gmail.com>
    Date:   Thu Jul 23 08:27:39 2020 +0200

        Enhancement/refactor climate (#159)

        * First commit for AtlanticElectricalHeater.
        Github Issue: #151

        * Refactored climate.
        * **Breaking** Removed options flow
        * **Breaking** Removed SUPPORT_TARGET_TEMPERATURE for AtlanticElectricalHeater IO component
        * Removed private properties.
        * Removed update methods.
        * Removed __init__ when possible.
        * Moved classes to their own files.
        * Add DimmerExteriorHeating

        Github Issue: #151

        * Fix/fix 161 (#162)

        Github Issue: #161

commit 4f1b0a7
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 14:46:13 2020 +0200

    Change debug text

commit f212bc6
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 14:22:44 2020 +0200

    Reference to the right DOMAINS

commit 67e09af
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 14:17:11 2020 +0200

    Reference to official domains

commit a1cf008
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 14:04:37 2020 +0200

    Add missing LOCK import

commit c971da9
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 14:00:06 2020 +0200

    Add constants instead of ugly strings

commit 22a1623
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 13:49:08 2020 +0200

    Change PLATFORMS to SUPPORTED_PLATFORMS

commit a57d246
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 13:08:12 2020 +0200

    Revert removal of DOMAIN

commit bf410ec
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 13:05:30 2020 +0200

    Remove unused imports

commit 4884a5f
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 13:02:27 2020 +0200

    Reformat switch.py

commit 01c1df1
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 12:59:19 2020 +0200

    Bugfix for switch

commit a13348f
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 12:48:39 2020 +0200

    Close client before removing client...

commit 15bb8cd
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 12:45:53 2020 +0200

    Make code more readable

commit d896200
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 12:43:59 2020 +0200

    Close HTTP client correctly

    Thanks @eavanvalkenburg!

commit 24b7190
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 10:18:31 2020 +0200

    Remove unnecessary loop

commit 28cd639
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 09:45:46 2020 +0200

    Refactor based on feedback

commit d3ccafe
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 01:07:08 2020 +0200

    Simply config flow and add better exception logging

commit c38f2e5
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 01:01:39 2020 +0200

    Only initialize platforms with devices and decide platform based on uiclass and widget

commit 4f579b8
Author: Mick Vleeshouwer <mick@imick.nl>
Date:   Tue Jul 21 00:31:28 2020 +0200

    Add async Python API wrapper
@vlebourl
Copy link
Collaborator Author

closed with #164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: sensor
Projects
None yet
Development

No branches or pull requests

1 participant