Closed dwradcliffe closed 3 years ago
David, did you have to add unit_of_measurement
all the way to PoolEntity
to get that feature? It's pretty specific to sensors and I would rather keep the top class as generic as possible.
I needed to add it to the number entity here to get the percent to show up properly. We could add it for all the sensors and number classes only but it seemed nice to stop repeating the same code. If you prefer I can move it back though.
From the dev docs, unit_of_measurement
is valid for all entities:
Other properties that are common to all entities such as icon, unit_of_measurement, name etc are also applicable.
Rebased
Tested locally: