mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Fixed bug in entity helper that ignored suggestions for hiding states.
This commit is contained in:
parent
97bb5bcb7d
commit
be3be0478b
@ -124,6 +124,10 @@ class Entity(object):
|
|||||||
if ATTR_UNIT_OF_MEASUREMENT not in attr and self.unit_of_measurement:
|
if ATTR_UNIT_OF_MEASUREMENT not in attr and self.unit_of_measurement:
|
||||||
attr[ATTR_UNIT_OF_MEASUREMENT] = self.unit_of_measurement
|
attr[ATTR_UNIT_OF_MEASUREMENT] = self.unit_of_measurement
|
||||||
|
|
||||||
|
if self.hidden:
|
||||||
|
attr[ATTR_HIDDEN] = self.hidden
|
||||||
|
|
||||||
|
# overwrite properties that have been set in the config file
|
||||||
for attr_name, val in _OVERWRITE[self.entity_id].items():
|
for attr_name, val in _OVERWRITE[self.entity_id].items():
|
||||||
attr[attr_name] = val
|
attr[attr_name] = val
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user