Skip to content

Commit

Permalink
Updated sv code for timer actions (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: Shaun Tarves <[email protected]>
  • Loading branch information
shauntarves and Shaun Tarves authored Oct 3, 2022
1 parent b513bff commit b4bb579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wyze_sdk/service/api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def set_device_timer(self, *, mac: str, delay_time: int, action_value: int, **kw
See: com.HLApi.CloudAPI.CloudProtocol.deviceTimerSet
"""
SV_SET_DEVICE_TIMER = 'b4810ce03e7747669fdc4644e554fd23'
SV_SET_DEVICE_TIMER = '1b3e8bfc7f654e1eaddf8db22090034f'

kwargs.update({
"device_mac": mac,
Expand All @@ -168,7 +168,7 @@ def get_device_group_timer(self, *, id: int, action_type: int, **kwargs) -> Wyze
return self.api_call('/app/v2/device_group/timer/get', json=kwargs)

def cancel_device_timer(self, *, mac: str, action_type: int, **kwargs) -> WyzeResponse:
SV_CANCEL_DEVICE_TIMER = '3f97925c690740f4aff91da765087db5'
SV_CANCEL_DEVICE_TIMER = '8670b7ddb88845468b77ef4d383bfd59'

kwargs.update({"device_mac": mac, "action_type": action_type, "sv": SV_CANCEL_DEVICE_TIMER})
return self.api_call('/app/v2/device/timer/cancel', json=kwargs)
Expand Down

0 comments on commit b4bb579

Please sign in to comment.