mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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."""
|
"""Save configuration."""
|
||||||
try:
|
try:
|
||||||
with open(filename, 'w') as fdesc:
|
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:
|
except (IOError, TypeError) as error:
|
||||||
_LOGGER.error('Saving config file failed: %s', error)
|
_LOGGER.error('Saving config file failed: %s', error)
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user