Skip to content

Commit

Permalink
Fixed non-lock devices filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Dec 13, 2021
1 parent 39256ce commit 0a0606d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/airbnk_mqtt/airbnk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def getCloudDevices(hass, userId, token):
res = {}
deviceConfigs = {}
for dev_data in json_data["data"] or []:
if dev_data["boardModel"].isnumeric():
if not dev_data["boardModel"].isnumeric():
_LOGGER.info("Device '%s' is filtered out", dev_data["deviceName"])
else:
res[dev_data["sn"]] = dev_data["deviceName"]
Expand Down

0 comments on commit 0a0606d

Please sign in to comment.