mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-13 15:24:03 +02:00
small fixes
This commit is contained in:
parent
b6a92650a9
commit
4fdf42bea1
2 changed files with 2 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ def int_between(min_int, max_int):
|
|||
|
||||
VALIDATION_TUPLES = [
|
||||
(CONF_LIGHTS, DEFAULT_LIGHTS, cv.entity_ids),
|
||||
(CONF_WATCHED_LIGHTS, DEFAULT_WATCHED_LIGHTS, cv.entity_ids),
|
||||
(CONF_WATCHED_LIGHTS, DEFAULT_WATCHED_LIGHTS, dict[str]),
|
||||
(CONF_PREFER_RGB_COLOR, DEFAULT_PREFER_RGB_COLOR, bool),
|
||||
(CONF_INCLUDE_CONFIG_IN_ATTRIBUTES, DEFAULT_INCLUDE_CONFIG_IN_ATTRIBUTES, bool),
|
||||
(CONF_INITIAL_TRANSITION, DEFAULT_INITIAL_TRANSITION, VALID_TRANSITION),
|
||||
|
|
|
|||
|
|
@ -1308,7 +1308,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
all_lights = {k: k for k in lights}
|
||||
all_lights.update(self._watched_lights)
|
||||
|
||||
for wlight, mlight in all_lights:
|
||||
for wlight, mlight in all_lights.items():
|
||||
if not is_on(self.hass, mlight):
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue