From a9634199e6aefdc63acb1a5e454c42eecd985335 Mon Sep 17 00:00:00 2001 From: Kane610 Date: Thu, 18 Jan 2018 23:51:01 +0100 Subject: [PATCH] Axis discovery fails to save conf (#11769) * Signal callback isnt JSON serializable so it has to be removed before saving to conf * Remove filtered events list which is not a part of component configuration --- homeassistant/components/axis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/axis.py b/homeassistant/components/axis.py index 23dbe052d1c..16bd544e96e 100644 --- a/homeassistant/components/axis.py +++ b/homeassistant/components/axis.py @@ -101,6 +101,8 @@ def request_configuration(hass, config, name, host, serialnumber): return False if setup_device(hass, config, device_config): + del device_config['events'] + del device_config['signal'] config_file = load_json(hass.config.path(CONFIG_FILE)) config_file[serialnumber] = dict(device_config) save_json(hass.config.path(CONFIG_FILE), config_file)