Fix saving push_notification.conf as suggested by @robbiet480 (#3382)
This commit is contained in:
1 parent
ca646c08c2
commit
de2eed3c9f
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user