mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
transition should always exist
This commit is contained in:
parent
37ac31c3c6
commit
618234259d
1 changed files with 1 additions and 3 deletions
|
|
@ -352,11 +352,9 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
if not is_on(self.hass, light):
|
||||
continue
|
||||
|
||||
service_data = {ATTR_ENTITY_ID: light}
|
||||
service_data = {ATTR_ENTITY_ID: light, ATTR_TRANSITION: transition}
|
||||
if self._brightness is not None:
|
||||
service_data[ATTR_BRIGHTNESS] = int((self._brightness / 100) * 254)
|
||||
if transition is not None:
|
||||
service_data[ATTR_TRANSITION] = transition
|
||||
|
||||
light_type = self._lights_types[light]
|
||||
if light_type == "ct":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue