diff --git a/BridgeEmulator/configManager/configHandler.py b/BridgeEmulator/configManager/configHandler.py index 638c3a0e5..f14c571e5 100644 --- a/BridgeEmulator/configManager/configHandler.py +++ b/BridgeEmulator/configManager/configHandler.py @@ -69,10 +69,10 @@ def load_config(self): if "tpkasa" not in config: config["tpkasa"] = {"enabled": True} - if int(config["swversion"]) < 1952086020: + if int(config["swversion"]) < 1952154030: config["swversion"] = "1952086020" - if float(config["apiversion"][:3]) < 1.50: - config["apiversion"] = "1.50.0" + if float(config["apiversion"][:3]) < 1.52: + config["apiversion"] = "1.52.0" self.yaml_config["config"] = config else: @@ -102,7 +102,7 @@ def load_config(self): "esphome": {"enabled":True}, "hyperion": {"enabled":True}, "tpkasa": {"enabled":True}, - } + } # load lights if os.path.exists(self.configDir + "/lights.yaml"): lights = _open_yaml(self.configDir + "/lights.yaml") diff --git a/BridgeEmulator/flaskUI/v2restapi.py b/BridgeEmulator/flaskUI/v2restapi.py index 89dd8cddc..696eaf652 100644 --- a/BridgeEmulator/flaskUI/v2restapi.py +++ b/BridgeEmulator/flaskUI/v2restapi.py @@ -321,6 +321,8 @@ def get(self, resource): elif resource == "behavior_script": for script in behaviorScripts(): response["data"].append(script) + elif resource == "motion": + response["data"] = [] else: response["errors"].append({"description": "Not Found"}) del response["data"] diff --git a/BridgeEmulator/functions/core.py b/BridgeEmulator/functions/core.py index 1e24c44b6..29ec9aa00 100644 --- a/BridgeEmulator/functions/core.py +++ b/BridgeEmulator/functions/core.py @@ -12,7 +12,7 @@ def staticConfig(): "errorcode": 0, "status": "idle" }, - "datastoreversion": "103", + "datastoreversion": "126", "dhcp": True, "factorynew": False, "internetservices": {