mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
fix pylint
This commit is contained in:
parent
ef04036bfe
commit
478200b67e
1 changed files with 9 additions and 7 deletions
|
|
@ -102,9 +102,7 @@ async def handle_apply(switch, service_call):
|
|||
data = service_call.data
|
||||
tasks = [
|
||||
await switch._adjust_light(
|
||||
light,
|
||||
data[CONF_TRANSITION],
|
||||
data[CONF_COLORS_ONLY],
|
||||
light, data[CONF_TRANSITION], data[CONF_COLORS_ONLY],
|
||||
)
|
||||
for light in data[CONF_LIGHTS]
|
||||
if not data[CONF_ON_LIGHTS_ONLY] or is_on(switch.hass, light)
|
||||
|
|
@ -197,10 +195,14 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
|
||||
# Set and unset tracker in async_turn_on and async_turn_off
|
||||
self.unsub_tracker = None
|
||||
_LOGGER.error(
|
||||
f"Setting up with '{self._lights}',"
|
||||
f" config_entry.data: '{config_entry.data}',"
|
||||
f" config_entry.options: '{config_entry.options}', converted to '{data}'."
|
||||
_LOGGER.debug(
|
||||
"Setting up with '%s',"
|
||||
" config_entry.data: '%s',"
|
||||
" config_entry.options: '%s', converted to '%s'.",
|
||||
self._lights,
|
||||
config_entry.data,
|
||||
config_entry.options,
|
||||
data,
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue