Skip to content

Commit

Permalink
Merge pull request #133 from vangorra/vangorra_bug_fixes
Browse files Browse the repository at this point in the history
Fixing bug that appeared with the latest firmware 1.7.4970 (7.31).
  • Loading branch information
vangorra authored May 16, 2020
2 parents 8bb4b2d + 0c5c283 commit a47ce2d
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 a47ce2d

Please sign in to comment.