Files
home-assistant-core/homeassistant/components
Jeff McGehee dd1608db0d Best effort state initialization of bayesian binary sensor (#30962)
* Best effort state initialization of bayesian binary sensor.

Why:

* https://github.com/home-assistant/home-assistant/issues/30119

This change addresses the need by:

* Running the main update logic eagerly for each entity being observed
  on `async_added_to_hass`.
* Test of the new behavior.

* Refactor in order to reduce number of methods with side effects that
mutate instance attributes.

* Improve test coverage

Why:

* Because for some reason my commits decreased test coverage.

This change addresses the need by:

* Adding coverage for the case where a device returns `STATE_UNKNOWN`
* Adding coverage for configurations with templates

* rebase and ensure upstream tests passed

* Delete commented code from addressing merge conflict.
2020-03-31 10:41:29 -06:00
..
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
2020-03-31 00:02:51 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
…
2020-03-01 15:04:18 +01:00
…
2020-03-29 00:04:45 +00:00
2020-03-11 07:27:07 +01:00
2020-03-29 00:04:45 +00:00
2020-03-24 13:18:47 +00:00
…
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-31 00:02:51 +00:00
2020-03-29 00:04:45 +00:00
2020-03-28 00:08:09 +00:00
2020-03-18 18:14:25 -07:00
2020-03-31 00:02:51 +00:00
2020-03-31 00:02:51 +00:00
2020-02-26 17:02:42 -08:00
2020-02-28 00:31:47 +00:00
2020-03-31 00:02:51 +00:00
2020-03-29 00:04:45 +00:00
…
2020-02-24 10:39:55 +01:00
2020-02-28 12:41:21 +01:00
2020-03-30 01:35:58 +02:00
2020-03-31 00:02:51 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
…
2020-03-31 00:02:51 +00:00
2020-03-18 19:27:25 +02:00
2020-02-13 00:31:46 +00:00
2020-03-29 00:04:45 +00:00
2020-03-17 17:54:57 -07:00
2020-03-29 00:04:45 +00:00
2020-02-20 08:51:00 -08:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-26 00:47:06 +00:00
…
…
2020-03-17 20:42:55 +01:00
…
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
…
2020-03-30 10:45:24 -07:00
…
…
2020-03-31 00:02:51 +00:00
…
2020-03-11 23:06:35 +01:00
2020-03-13 22:27:53 +01:00
…
2020-03-24 13:18:47 +00:00
2020-02-28 00:31:47 +00:00
…
2020-02-22 00:31:49 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
…
2020-03-24 13:18:47 +00:00
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
…
2020-03-30 01:35:58 +02:00
2020-03-31 00:02:51 +00:00
…
2020-03-31 00:02:51 +00:00
…
…
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-31 00:02:51 +00:00
…
2020-03-27 00:46:57 +00:00
2020-03-31 00:02:51 +00:00
…
2020-03-18 15:19:40 -05:00
…
…
2020-03-29 21:30:00 +02:00
2020-03-29 00:04:45 +00:00
2020-03-17 22:03:16 -05:00
…
…
2020-03-29 00:04:45 +00:00
2020-03-25 17:22:34 +01:00
…
2020-03-29 00:04:45 +00:00
2020-03-24 13:18:47 +00:00
2020-02-15 11:59:41 +01:00
2020-03-29 00:04:45 +00:00
…
2020-02-15 11:59:41 +01:00
2020-03-31 00:02:51 +00:00
2020-03-29 00:04:45 +00:00
2020-03-19 11:29:51 -05:00
2020-03-09 09:35:54 +01:00
2020-03-29 00:04:45 +00:00
2020-03-28 00:08:09 +00:00
2020-03-04 09:41:34 +01:00
…
…
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-18 11:55:09 +01:00
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
…
…
…
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
2020-03-29 00:04:45 +00:00
2020-03-13 00:28:26 +01:00
…
…
2020-02-24 15:34:53 +01:00
2020-03-18 19:27:25 +02:00
…
2020-03-29 00:04:45 +00:00
2020-03-31 00:02:51 +00:00
2020-03-26 22:27:05 +01:00
…
…
…
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
2020-03-29 00:04:45 +00:00
…
…
2020-03-29 00:04:45 +00:00
…
2020-02-28 00:31:47 +00:00
2020-03-29 00:04:45 +00:00
2020-03-31 00:02:51 +00:00
…
…
…
…
2020-03-28 00:08:09 +00:00
2020-03-28 00:08:09 +00:00
…
…
…
…
2020-03-29 00:04:45 +00:00
2020-03-24 12:04:33 +01:00