From be3be0478b9a93ffca8e4725504d8f68a83f5f93 Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sat, 25 Apr 2015 14:59:27 -0400 Subject: [PATCH] Fixed bug in entity helper that ignored suggestions for hiding states. --- homeassistant/helpers/entity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index d68ad7d632f..1097b684e60 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -124,6 +124,10 @@ class Entity(object): if ATTR_UNIT_OF_MEASUREMENT not in attr and 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(): attr[attr_name] = val