mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix saving push_notification.conf as suggested by @robbiet480 (#3382)
This commit is contained in:
parent
ca646c08c2
commit
de2eed3c9f
@ -144,7 +144,7 @@ def _save_config(filename, config):
|
||||
"""Save configuration."""
|
||||
try:
|
||||
with open(filename, 'w') as fdesc:
|
||||
fdesc.write(json.dumps(config, indent=4, sort_keys=True))
|
||||
fdesc.write(json.dumps(config))
|
||||
except (IOError, TypeError) as error:
|
||||
_LOGGER.error('Saving config file failed: %s', error)
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user