From d0a8a57ae4a4a26355a0ebe2516ce45fabf45b12 Mon Sep 17 00:00:00 2001 From: Roy Hooper Date: Sun, 3 Jan 2016 15:30:06 -0500 Subject: [PATCH] Ensure filename arg is passed around everywhere it's needed. --- homeassistant/components/light/hue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/light/hue.py b/homeassistant/components/light/hue.py index b828847ecb0..b1843f4bca8 100644 --- a/homeassistant/components/light/hue.py +++ b/homeassistant/components/light/hue.py @@ -90,7 +90,7 @@ def setup_bridge(host, hass, add_devices_callback, filename): except phue.PhueRegistrationException: _LOGGER.warning("Connected to Hue at %s but not registered.", host) - request_configuration(host, hass, add_devices_callback) + request_configuration(host, hass, add_devices_callback, filename) return @@ -143,7 +143,7 @@ def setup_bridge(host, hass, add_devices_callback, filename): update_lights() -def request_configuration(host, hass, add_devices_callback): +def request_configuration(host, hass, add_devices_callback, filename): """ Request configuration steps from the user. """ configurator = get_component('configurator') @@ -157,7 +157,7 @@ def request_configuration(host, hass, add_devices_callback): # pylint: disable=unused-argument def hue_configuration_callback(data): """ Actions to do when our configuration callback is called. """ - setup_bridge(host, hass, add_devices_callback) + setup_bridge(host, hass, add_devices_callback, filename) _CONFIGURING[host] = configurator.request_config( hass, "Philips Hue", hue_configuration_callback,