Skip to content

Commit

Permalink
fix connection error because of api version
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark authored Mar 11, 2024
1 parent 9f5afc0 commit 28fec9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BridgeEmulator/services/updateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def versionCheck():
device_data = json.loads(response.text)
if len(device_data["updates"]) != 0:
new_version = str(device_data["updates"][len(device_data["updates"])-1]["version"])
new_versionName = str(device_data["updates"][len(device_data["updates"])-1]["versionName"])
new_versionName = str(device_data["updates"][len(device_data["updates"])-1]["versionName"][:4]+".0")
if new_version > swversion:
logging.info("swversion number update from Philips, old: " + swversion + " new:" + new_version)
bridgeConfig["config"]["swversion"] = new_version
Expand Down

0 comments on commit 28fec9b

Please sign in to comment.