From b8132d61844a2b1861666673b4c1414d5c331401 Mon Sep 17 00:00:00 2001 From: Nolan Gilley Date: Thu, 11 Aug 2016 10:49:11 -0400 Subject: [PATCH] fix flux_update service --- homeassistant/components/switch/flux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/switch/flux.py b/homeassistant/components/switch/flux.py index a66b45bc82e..a7d2691a1ef 100644 --- a/homeassistant/components/switch/flux.py +++ b/homeassistant/components/switch/flux.py @@ -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)