From 45f2f07b6d6b688ce18f5272502174302c622038 Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sat, 25 Apr 2015 18:29:37 -0400 Subject: [PATCH] Used better method for overwritting attributes in entity. --- homeassistant/helpers/entity.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 1097b684e60..f9751ffc14c 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -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):