Skip to content

Commit

Permalink
fix: bridge check not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Nov 17, 2024
1 parent 3b43340 commit 8cadf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nexa_bridge_x/nexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async def test_connection(self) -> NexaInfoData:
if result["systemType"] != "Bridge1":
raise NexaApiNotCompatibleError("Endpoint not compatible")
else:
if result["systemType"] != "Bridge2" or result["systemType"] != "Bridge3":
if result["systemType"] not in ["Bridge2", "Bridge3"]:
raise NexaApiNotCompatibleError("Endpoint not compatible")

return result
Expand Down

0 comments on commit 8cadf0d

Please sign in to comment.