fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
553 stars 101 forks source link

'NoneType' object has no attribute 'renewtimer' - RLC 810A - HA 2022.4.5 #500

Open michalkruczek opened 2 years ago

michalkruczek commented 2 years ago

Hi Guys, I'm facing this issue described below in log. I can't stream using a rtsp protocol. Did anyone of you have seen something like that ? I'll be glad if anyone could get me right on tracks with this problem.

Logger: custom_components.reolink_dev Source: custom_components/reolink_dev/base.py:414 Integration: Reolink IP camera (documentation, issues) First occurred: 16:26:25 (54 occurrences) Last logged: 17:19:25

Unexpected error fetching reolink.droga- wjazd - las data: 'NoneType' object has no attribute 'renewtimer' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data return await self.update_method() File "/config/custom_components/reolink_dev/init.py", line 97, in async_update_data await push.renew() File "/config/custom_components/reolink_dev/base.py", line 414, in renew if self._sman.renewtimer <= SESSION_RENEW_THRESHOLD: AttributeError: 'NoneType' object has no attribute 'renewtimer'

michalkruczek commented 2 years ago

I have renamed camera to name without spaces. And stream works fine but it still continuously generates more and more of this error in HA log:

2022-05-11 18:05:12 ERROR (MainThread) [custom_components.reolink_dev] Unexpected error fetching reolink.Popradzka1 data: 'NoneType' object has no attribute 'renewtimer' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data return await self.update_method() File "/config/custom_components/reolink_dev/init.py", line 97, in async_update_data await push.renew() File "/config/custom_components/reolink_dev/base.py", line 414, in renew if self._sman.renewtimer <= SESSION_RENEW_THRESHOLD: AttributeError: 'NoneType' object has no attribute 'renewtimer'