Used better method for overwritting attributes in entity.

This commit is contained in:
Ryan Kraus committed 2015-04-25 18:29:37 -04:00
1 parent be3be0478b
commit 45f2f07b6d
1 file changed
+1 -2
+1 -2
View File
@@ -128,8 +128,7 @@ class Entity(object):
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
attr.update(_OVERWRITE.get(self.entity_id, {}))
# remove hidden property if false so it won't show up
if not attr.get(ATTR_HIDDEN, True):