Disable parsing of extra configs for PIO Home Project RPC load/dump methods

This commit is contained in:
Ivan Kravets
2019-11-01 12:05:13 +02:00
parent 3de2d84e2b
commit cd3d638337

View File

@ -45,11 +45,11 @@ class ProjectRPC(object):
@staticmethod
def config_load(path):
return ProjectConfig(path).as_tuple()
return ProjectConfig(path, parse_extra=False).as_tuple()
@staticmethod
def config_dump(path, data):
config = ProjectConfig(path)
config = ProjectConfig(path, parse_extra=False)
config.update(data, clear=True)
return config.save()