Skip to content

Commit 28fec9b

Browse files
fix connection error because of api version
1 parent 9f5afc0 commit 28fec9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BridgeEmulator/services/updateManager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def versionCheck():
1616
device_data = json.loads(response.text)
1717
if len(device_data["updates"]) != 0:
1818
new_version = str(device_data["updates"][len(device_data["updates"])-1]["version"])
19-
new_versionName = str(device_data["updates"][len(device_data["updates"])-1]["versionName"])
19+
new_versionName = str(device_data["updates"][len(device_data["updates"])-1]["versionName"][:4]+".0")
2020
if new_version > swversion:
2121
logging.info("swversion number update from Philips, old: " + swversion + " new:" + new_version)
2222
bridgeConfig["config"]["swversion"] = new_version

0 commit comments

Comments
 (0)