StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
623 stars 112 forks source link

[BUG] shelly coap message errors #383

Closed mani76 closed 4 years ago

mani76 commented 4 years ago

Environment

New error messages are shown continuously.

By using Shelly mobile app I am able to use devices normally.

Affects at least: Shelly 2pm, Shelly dimmer

Steps to Reproduce

Expected behavior

Screenshots

Traceback/Error logs

2020-08-18 18:38:02 ERROR (CoAP) [pyShelly] Error receive CoAP Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/coap.py", line 183, in _loop ipaddr, 'CoAP-msg', payload) File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/init.py", line 242, in update_block block.update(data, ipaddr) File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 92, in update dev.update(data) File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/switch.py", line 46, in update self._update(state > 0, {'last_event' : self.last_event, TypeError: '>' not supported between instances of 'NoneType' and 'int'

Additional context

mani76 commented 4 years ago

duplicate