Skip to content

Commit

Permalink
Fixing bug that appeared with the latest firmware 1.7.4970 (7.31).
Browse files Browse the repository at this point in the history
  • Loading branch information
vangorra committed May 16, 2020
1 parent 8bb4b2d commit 0c5c283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyvera"
version = "0.3.8"
version = "0.3.9"
description = "Python API for talking to Veracontrollers"

license = "GPL2"
Expand Down
2 changes: 1 addition & 1 deletion pyvera/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_devices(self, category_filter: str = "") -> List["VeraDevice"]:
alerts = json_data.get("alerts", ())

for item in items:
item["deviceInfo"] = self.device_id_map.get(item.get("id"))
item["deviceInfo"] = self.device_id_map.get(item.get("id")) or {}
item_alerts = [
alert for alert in alerts if alert.get("PK_Device") == item.get("id")
]
Expand Down

0 comments on commit 0c5c283

Please sign in to comment.