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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue