Files
core/homeassistant/components/binary_sensor
Greg Laabs 23afdec767 Fix ISY moisure sensors showing unknown until a leak is detected (#14496)
* Fix ISY leak sensors always showing UNKNOWN until a leak is detected

Added some logic that handles both moisture sensors and door/window sensors

* Handle edge case of leak sensor status update after ISY reboot

If a leak sensor is unknown, due to a recent reboot of the ISY, the status will get updated to dry upon the first heartbeat. This status update is the only way that a leak sensor's status changes without an accompanying Control event, so we need to watch for it.

* Fixes from overnight testing

State was checking the incorrect parameter, and wasn't calling schedule update

* Remove leftover debug log line

* Remove unnecessary pylint instruction

* Remove access of protected property

We can't cast _.status directly to a bool for some unknown reason (possibly with the VarEvents library), but casting to an int then bool does work.
2018-05-21 21:00:01 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
2018-04-16 21:00:13 +02:00
…
…
…
…
…
…
2018-05-18 13:37:43 -04:00
…
…
…
…
…
2018-05-14 13:05:52 +02:00
…
…
2018-04-28 23:16:34 +02:00
…
…
2018-04-30 09:28:00 +02:00
…
…
…
…
2018-05-04 17:09:05 +02:00
…
…