renemarc / home-assistant-config

🏠 Fully documented Home Assistant configuration for a smart-looking place. 😎 Be sure to ⭐️ my repo and copy ideas!
Apache License 2.0
344 stars 57 forks source link

Sensor attribute precision does not apply to sub_entity #47

Open grubis opened 3 years ago

grubis commented 3 years ago

Bug Report

the "precision" configuration for a "sensor" widget is not applied to sub_elements for a dashboard definition in AppDaemon4

I use the sensor widget to view two temperature in the house. It's more compact than using two separate widgets. I use the precision configuration element to round the entities' values to no decimals (precision: 0). The precision is applied to the "main" entity, but not applied to the sub_entity.

Environment Info

temperatures1: widget_type: sensor title: Garage and title2: Basement entity: sensor.garage_service_door_temperature sub_entity: sensor.basement_office_temperature_measurement state_text_style: "font-size: 250%;" precision: 0

Debug Log (if any)

![image](https://user-images.githubusercontent.com/6271822/128604334-ca7256cc-83a8-4663-875a-f903f77d3a38.png)
welcome[bot] commented 3 years ago

🎉 Thanks for opening your first issue here! 😃