fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Support push notification switch #257

Closed fwestenberg closed 3 years ago

yagrasdemonde commented 3 years ago

Hi @fwestenberg .

I think you forgot to publish modifications on 0.20 release. 😉

fwestenberg commented 3 years ago

No, I got this strange error:

  File "/config/custom_components/reolink_dev/camera.py", line 213, in ReolinkCamera
    self, width: int | None = None, height: int | None = None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

And for the push switch, in my case the API does not support the getPush:

{
"cmd" : "GetPush",
"code" : 1,
"error" : {
"detail" : "send failed",
"rspCode" : -16
}