mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
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
This commit is contained in:
parent
cf6f916ed4
commit
a9634199e6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user