Files
core/tests/components
Jeff McGehee 7de73e9ef7 Bayesian Binary Sensor (#8810)
* Bayesian Binary Sensor

Why:

* It would be beneficial to leverage various sensor outputs in a
Bayesian manner in order to sense more complex events.

This change addresses the need by:

* `BayesianBinarySensor` class in
`./homeassistant/components/binary_sensor/bayesian.py`
* Tests in `./tests/components/binary_sensor/test_bayesian.py`

Caveats:
This is my first time in this code-base. I did try to follow conventions
that I was able to find, but I'm sure there will be some issues to
straighten out.

* minor cleanup

* Address reviewer's comments

This change addresses the need by:

* Removing `CONF_SENSOR_CLASS` and its usage in `get_deprecated`.
* Make probability update function a static method, and use single `_`
to match project conventions.

* Address linter failures

* fix `device_class` declaration

* Address Comments

Why:
* Not validating config schema enough.
* Not following common practices for async initialization.
* Naive implementation of Bayes' rule.

This change addresses the need by:
* Improving config validation for observations.
* Moving initialization logic into `async_added_to_hass`.
* Re-configuring Bayesian updates to allow true P|Q usage.

* address linting issues

* Improve DRYness by adding `_update_current_obs` method

* update doc strings and ensure functions are set up properly for async

* Make only 1 state change handle

* fix style

* fix style part 2

* fix lint
2017-08-29 23:53:41 +02:00
..
2017-08-29 13:40:08 -07:00
2017-05-19 07:37:39 -07:00
2017-08-03 10:51:01 +02:00
2017-06-17 10:03:49 -07:00
2017-07-31 20:52:39 -07:00
2017-08-29 08:10:38 -07:00
2017-05-13 21:25:54 -07:00
2016-03-09 10:25:50 +01:00
2017-07-21 21:38:53 -07:00
2017-08-29 15:44:36 +02:00
2017-07-21 21:38:53 -07:00
2017-05-12 20:14:17 -07:00
2017-06-25 10:53:15 -07:00
2017-04-11 09:23:41 -07:00
2017-07-13 10:19:59 -07:00
2017-03-30 00:50:53 -07:00
2017-07-21 21:38:53 -07:00