Skip to content

Sensor attribute precision does not apply to sub_entity #47

@grubis

Description

@grubis

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions