hass-core/tests/components/binary_sensor
Jeff McGehee 29b62f814f Allow multiple observations of same entity (#9391)
* Allow multiple observations of same entity

Why:

* There may be different probabilities for multiple states of the same
entity.

This change addresses the need by:

* Keeping a list of observations for each entity to check on each state
change of the given entity.
* Adding a numeric id to each observation so that they can be
effectively added and removed from `self.current_obs`.
* Adding a test to confirm functionality.

* fix overzealous indenting
2017-09-12 18:52:09 +02:00
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_aurora.py assertEquals is deprecated (#7777) 2017-05-25 22:21:22 -07:00
test_bayesian.py Allow multiple observations of same entity (#9391) 2017-09-12 18:52:09 +02:00
test_binary_sensor.py binary_sensor sensor_class to entity device_class (#5860) 2017-02-10 20:46:15 -08:00
test_command_line.py Added possibilities to use template in the command_line sensor (#8505) 2017-08-10 18:52:52 +02:00
test_ffmpeg.py Fix automations listening to HOMEASSISTANT_START (#6936) 2017-04-05 23:23:02 -07:00
test_mqtt.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_nx584.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_ring.py Clean artifacts after running Ring tests. (#6944) 2017-04-05 11:26:56 +02:00
test_sleepiq.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_spc.py Add support for Vanderbilt SPC alarm panels and attached sensors (#7663) 2017-06-04 23:53:25 -07:00
test_tcp.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_template.py Core track same state for a period / Allow on platforms (#9273) 2017-09-05 02:01:01 +02:00
test_threshold.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_trend.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_workday.py Workday sensor offset (#8824) 2017-08-21 13:24:30 +02:00
test_zwave.py Fix off_delay for zwave trigger sensors (#8864) 2017-08-06 18:31:32 +03:00