mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
switch doesn't need to have the profile as attribute
This commit is contained in:
parent
32dea3aa51
commit
e31915c20b
1 changed files with 0 additions and 3 deletions
|
|
@ -117,7 +117,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
disable_state=config.get(CONF_DISABLE_STATE),
|
||||
initial_transition=config[CONF_INITIAL_TRANSITION],
|
||||
only_once=config[CONF_ONLY_ONCE],
|
||||
profile=profile,
|
||||
)
|
||||
add_devices([switch])
|
||||
|
||||
|
|
@ -178,7 +177,6 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
disable_state,
|
||||
initial_transition,
|
||||
only_once,
|
||||
profile,
|
||||
):
|
||||
"""Initialize the Circadian Lighting switch."""
|
||||
self.hass = hass
|
||||
|
|
@ -200,7 +198,6 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
self._disable_state = disable_state
|
||||
self._initial_transition = initial_transition
|
||||
self._only_once = only_once
|
||||
self._profile = profile
|
||||
self._lights_types = dict(zip(lights_ct, repeat("ct")))
|
||||
self._lights_types.update(zip(lights_rgb, repeat("rgb")))
|
||||
self._lights_types.update(zip(lights_xy, repeat("xy")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue