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