mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
fix flux_update service
This commit is contained in:
@@ -151,8 +151,9 @@ class FluxSwitch(SwitchDevice):
|
||||
self.update_ha_state()
|
||||
|
||||
# pylint: disable=too-many-locals
|
||||
def flux_update(self, now=dt_now()):
|
||||
def flux_update(self, service=None):
|
||||
"""Update all the lights using flux."""
|
||||
now = dt_now()
|
||||
sunset = next_setting(self.hass, SUN).replace(day=now.day,
|
||||
month=now.month,
|
||||
year=now.year)
|
||||
|
Reference in New Issue
Block a user