fixes - ui stuff

This commit is contained in:
Martin Bauer
2019-06-21 01:58:58 +02:00
parent 7b4c21204a
commit 53ed91e59b
9 changed files with 236 additions and 57 deletions

View File

@@ -56,6 +56,9 @@ async def async_setup(hass, config):
for entity_id in entity_ids:
brightness = hass.states.get(entity_id).attributes.get('brightness', 0)
state = hass.states.get(entity_id).state
if state == 'off':
continue
if factor is not None:
data = {ATTR_BRIGHTNESS: clip_value(brightness * factor)}
if offset is not None: