Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from nick2k3/master
Browse files Browse the repository at this point in the history
Update camera.py to fix c&p issues
  • Loading branch information
fwestenberg authored Jul 14, 2020
2 parents 8536aab + 8b49993 commit dcde6d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2 align="center">
<a href="https://reolink.com"><img src="./logo.png" alt="Reolink logotype" width="200"></a>
<br>
<i>Reolink custom component for Home Assistant</i>
<i>Home Assistant Reolink addon</i>
<br>
</h2>

Expand Down
6 changes: 3 additions & 3 deletions custom_components/reolink_dev/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ def handler_enable_motion_detection(call):

if entity:
entity.enable_motion_detection()
hass.services.async_register(DOMAIN, SERVICE_ENABLE_RECORDING, handler_enable_motion_detection)
hass.services.async_register(DOMAIN, SERVICE_ENABLE_MOTION_DETECTION, handler_enable_motion_detection)

# Event disable recording
# Event disable motion detection
def handler_disable_motion_detection(call):
component = hass.data.get(DOMAIN)
entity = component.get_entity(call.data.get(ATTR_ENTITY_ID))

if entity:
entity.disable_motion_detection()
hass.services.async_register(DOMAIN, SERVICE_DISABLE_RECORDING, handler_disable_motion_detection)
hass.services.async_register(DOMAIN, SERVICE_DISABLE_MOTION_DETECTION, handler_disable_motion_detection)


class ReolinkCamera(Camera):
Expand Down

0 comments on commit dcde6d7

Please sign in to comment.