Skip to content

Commit

Permalink
Fix for new PTZ bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
xannor committed Sep 21, 2022
1 parent 0401cf6 commit e741557
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/reolink_rest/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""version"""

__version__ = "0.6.6"
__version__ = "0.6.7"
4 changes: 2 additions & 2 deletions custom_components/reolink_rest/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ def update_zf_range(self, value: ptz._ZoomFocusRange | None):

def update_presets(self, value: Mapping[int, ptz.Preset]):
"""update presets"""
if value is not None and not isinstance(value, Mapping[int, ptz.Preset]):
if value is not None and not isinstance(value, Mapping):
raise TypeError("Invalid value")
self._presets = value

def update_patrols(self, value: Mapping[int, ptz.Patrol]):
"""update presets"""
if value is not None and not isinstance(value, Mapping[int, ptz.Patrol]):
if value is not None and not isinstance(value, Mapping):
raise TypeError("Invalid value")
self._patrol = value

Expand Down
2 changes: 1 addition & 1 deletion custom_components/reolink_rest/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Reolink IP Device",
"documentation": "https://github.com/xannor/ha_reolink_rest",
"issue_tracker": "https://github.com/xannor/ha_reolink_rest/issues",
"version": "0.6.6",
"version": "0.6.7",
"iot_class": "local_polling",
"requirements": ["async-reolink.rest==0.6.6"],
"dependencies": ["camera"],
Expand Down

0 comments on commit e741557

Please sign in to comment.