Fix saving push_notification.conf as suggested by @robbiet480 (#3382)

This commit is contained in:
Eric Clymer 2016-09-13 16:22:55 -05:00 committed by Robbie Trencheny
parent ca646c08c2
commit de2eed3c9f

View File

@ -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