Skip to content

Fix Surveillance Station update when no camera linked#75

Merged
Quentame merged 1 commit intoProtoThis:masterfrom
Quentame:fix/no-cam
Oct 18, 2020
Merged

Fix Surveillance Station update when no camera linked#75
Quentame merged 1 commit intoProtoThis:masterfrom
Quentame:fix/no-cam

Conversation

@Quentame
Copy link
Collaborator

@Quentame Quentame commented Oct 18, 2020

In order to fix home-assistant/core#41416

Fix:

  File "/Users/pollet/dev/home-assistant/core/venv/lib/python3.8/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 46, in update
    live_view_data = self._dsm.get(
  File "/Users/pollet/dev/home-assistant/core/venv/lib/python3.8/site-packages/synology_dsm/synology_dsm.py", line 186, in get
    return self._request("GET", api, method, params, **kwargs)
  File "/Users/pollet/dev/home-assistant/core/venv/lib/python3.8/site-packages/synology_dsm/synology_dsm.py", line 247, in _request
    raise SynologyDSMAPIErrorException(
synology_dsm.exceptions.SynologyDSMAPIErrorException: {'api': 'SYNO.SurveillanceStation.Camera', 'code': 401, 'reason': 'Invalid parameter', 'details': None}

@Quentame Quentame changed the title Fix Surveillance Station update when no cameras linked Fix Surveillance Station update when no camera linked Oct 18, 2020
@Quentame Quentame merged commit eb26278 into ProtoThis:master Oct 18, 2020
@Quentame Quentame deleted the fix/no-cam branch October 18, 2020 17:19
@Quentame Quentame added this to the 1.0.0 milestone Oct 20, 2020
@Quentame Quentame added Hacktoberfest https://hacktoberfest.digitalocean.com/ hacktoberfest-accepted labels Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hacktoberfest https://hacktoberfest.digitalocean.com/ hacktoberfest-accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SynologyDSMAPIErrorException if no cameras starting 0.116.0

1 participant