StyraHem / ShellyForHASS

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

[BUG] Shelly flood sensor stays on. #503

Closed miamilabs closed 3 years ago

miamilabs commented 3 years ago

Environment

Describe the bug

After "Shelly Flood" report of flood, the sensor stays "on".

Steps to Reproduce

Shelly Flood, trigger alert.

Expected behavior

The sensor should return to "off" state after certain of time. This not happen provably as the shelly flood is turning off after it reported that flood happened.

Screenshots

Screenshot 2020-12-23 at 22 30 00

Traceback/Error logs

2020-12-24 19:11:08 ERROR (Poll status) [pyShelly] Error update device status: B085CA SHWT-1, , Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 191, in update_status_information dev.raise_updated(force_update_devices) File "/usr/local/lib/python3.8/site-packages/pyShelly/base.py", line 36, in raise_updated callback(self) File "/config/custom_components/shelly/device.py", line 59, in _updated self._update_ha_state() File "/config/custom_components/shelly/device.py", line 51, in _update_ha_state self.schedule_update_ha_state(True) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 422, in schedule_update_ha_state assert self.hass is not None AssertionError Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 191, in update_status_information dev.raise_updated(force_update_devices) File "/usr/local/lib/python3.8/site-packages/pyShelly/base.py", line 36, in raise_updated callback(self) File "/config/custom_components/shelly/device.py", line 59, in _updated self._update_ha_state() File "/config/custom_components/shelly/device.py", line 51, in _update_ha_state self.schedule_update_ha_state(True) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 422, in schedule_update_ha_state assert self.hass is not None AssertionError

hakana commented 3 years ago

Duplicate #504