Skip to content

Commit

Permalink
Fix #77 - Is Online: N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed Jul 23, 2020
1 parent 6f243fc commit 70a7ca9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2020-07-23 #2

**Fixed bugs:**

- Fixed Is Online: N/A [\#77](https://github.com/elad-bar/ha-bleuiris/issues/77)

## 2020-07-23

**Implemented enhancements:**
Expand Down
6 changes: 1 addition & 5 deletions custom_components/blueiris/models/camera_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ def __init__(self, camera):
self.name = camera.get(BI_ATTR_NAME)
self.is_online = camera.get(BI_ATTR_IS_ONLINE, False)
self.has_audio = camera.get(BI_ATTR_AUDIO, False)
self.data = {}

for key in camera:
if key not in BI_NON_GENERIC_ATTRIBUTES:
self.data[key] = camera[key]
self.data = camera

self.is_system = self.id in SYSTEM_CAMERA_ID

Expand Down

0 comments on commit 70a7ca9

Please sign in to comment.