Skip to content

Commit

Permalink
fix startup message about routines migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea committed Aug 22, 2022
1 parent 0a631cc commit 9ac772f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions BridgeEmulator/configManager/configHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion BridgeEmulator/functions/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def staticConfig():
"errorcode": 0,
"status": "idle"
},
"datastoreversion": "103",
"datastoreversion": "126",
"dhcp": True,
"factorynew": False,
"internetservices": {
Expand Down

0 comments on commit 9ac772f

Please sign in to comment.