fixes - ui stuff
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user