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-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2018-02-18 09:24:51 +01:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2018-01-30 10:39:39 +01:00
2017-05-02 22:47:20 +02:00
2018-02-11 09:20:28 -08:00
2018-01-29 23:37:19 +01:00
2017-04-29 22:04:49 -07:00
2018-01-22 22:54:41 -08:00
2018-03-03 19:23:55 +01:00
2018-04-16 21:00:13 +02:00
2018-02-17 10:29:14 +01:00
2017-10-07 15:11:41 +02:00
2017-10-27 16:19:47 +02:00
2018-05-18 13:37:43 -04:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2018-02-17 10:29:14 +01:00
2018-01-29 23:37:19 +01:00
2018-01-27 11:58:27 -08:00
2017-10-29 11:15:57 +01:00
2018-01-20 22:35:38 -08:00
2018-05-14 13:05:52 +02:00
2017-04-29 22:04:49 -07:00
2018-02-17 10:29:14 +01:00
2017-10-08 20:14:39 +02:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2018-04-28 23:16:34 +02:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2018-04-30 09:28:00 +02:00
2017-07-26 14:03:29 +02:00
2017-12-07 07:47:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2018-05-04 17:09:05 +02:00
2017-04-29 22:04:49 -07:00