1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

1) Performed many pylint and flake8 fixes to clean up isy994 integration and hidden entities addition. 2) Added necessary code to allow groups to also be hidden. 3) Made most of the weather data from the isy994 component be hidden by default.

This commit is contained in:
Ryan Kraus
2015-04-15 02:05:34 -04:00
parent caed69d5ea
commit b20424261c
6 changed files with 85 additions and 30 deletions

View File

@@ -83,7 +83,7 @@ class Entity(object):
hass = None
entity_id = None
_visibility = {}
visibility = {}
def update_ha_state(self, force_refresh=False):
"""
@@ -138,8 +138,8 @@ class Entity(object):
whatever the component sets for visibility.
"""
if self.entity_id is not None and \
self.entity_id.lower() in self._visibility:
return self._visibility[self.entity_id.lower()] == 'hide'
self.entity_id.lower() in self.visibility:
return self.visibility[self.entity_id.lower()] == 'hide'
else:
return self._hidden