Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
lawfulchaos committed Apr 8, 2023
2 parents 6d2402f + d26180d commit 6e0637e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zwave_me_ws/ZWaveMe.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ def on_message(self, _, utf):

body = json.loads(dict_data["data"]["body"])
if "devices" in body["data"]:
self.devices = [
self.devices = prepare_devices([
device
for device in body["data"]["devices"]
if device["deviceType"] in self.platforms
]
])
if self.on_device_create:
self.on_device_create(prepare_devices(self.devices))
self.on_device_create(self.devices)

elif dict_data["type"] == "get_device_info":
if "data" not in dict_data or "body" not in dict_data["data"]:
Expand Down

0 comments on commit 6e0637e

Please sign in to comment.