core/homeassistant/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 Remove deprecated substitute interfaces (#8701) 2017-07-29 19:18:06 -04:00
abode.py Abode push events and lock, cover, and switch components (#9095) 2017-08-29 17:34:19 +02:00
alarmdecoder.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
android_ip_webcam.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
apcupsd.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
arest.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
aurora.py Add aurora sensor (#6003) 2017-02-17 09:13:52 +01:00
axis.py Axis component (#7381) 2017-05-12 08:51:54 -07:00
bayesian.py Allow multiple observations of same entity (#9391) 2017-09-12 18:52:09 +02:00
bbb_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
blink.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
bloomsky.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
command_line.py Added possibilities to use template in the command_line sensor (#8505) 2017-08-10 18:52:52 +02:00
concord232.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
demo.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
digital_ocean.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
ecobee.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
eight_sleep.py Update docstrings (#7405) 2017-05-02 22:47:20 +02:00
enocean.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
envisalink.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
ffmpeg_motion.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
ffmpeg_noise.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
flic.py Fix pylint 1.7.2 no-else-return issues (#8361) 2017-07-05 23:30:01 -07:00
hikvision.py Bump pyHik version to add IO support (#9341) 2017-09-09 00:06:06 -07:00
homematic.py WIP: Homematic improvments with new hass interfaces (#9058) 2017-08-31 21:16:44 +02:00
insteon_plm.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
iss.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
isy994.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
knx.py Stable and asynchronous KNX library. (#8725) 2017-09-07 00:11:55 -07:00
maxcube.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
modbus.py Modbus fixes to work with pymodbus 1.3.1 (#8365) 2017-07-06 22:30:23 -07:00
mqtt.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
mysensors.py Refactor mysensors callback and add validation (#9069) 2017-08-25 08:58:05 -07:00
mystrom.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
nest.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
netatmo.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
nx584.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
octoprint.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
pilight.py Allow Pilight Binary Sensor to control reset_delay_sec through configuration (#8358) 2017-07-06 21:09:31 +02:00
ping.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
raspihats.py Add raspihats binary sensor (#7508) 2017-05-12 09:20:48 -07:00
rest.py Do not call update() in constructor (#8881) 2017-08-08 06:52:27 +02:00
rfxtrx.py Add is_lighting4 to RfxtrxBinarySensor (#8563) 2017-07-20 11:12:42 +02:00
ring.py Make sure Ring binary_sensor state will update only if device_id matches (#9247) 2017-09-01 09:14:16 +02:00
rpi_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
rpi_pfio.py Support for the PiFace Digital I/O module (#7494) 2017-05-09 22:36:33 -07:00
sleepiq.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
spc.py Add support for Vanderbilt SPC alarm panels and attached sensors (#7663) 2017-06-04 23:53:25 -07:00
tapsaff.py Added a Taps Aff binary sensor (#7880) 2017-06-04 13:35:19 +02:00
tcp.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
template.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
tesla.py Tesla platform (#9211) 2017-08-30 23:13:02 -05:00
threshold.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
trend.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
velbus.py Velbus (#8076) 2017-07-26 14:03:29 +02:00
vera.py Append vera device id to entity id - but not name. (#6523) 2017-03-11 10:06:46 -08:00
verisure.py verisure component names (#8251) 2017-06-30 08:53:14 +02:00
volvooncall.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
wemo.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
wink.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
workday.py Workday sensor offset (#8824) 2017-08-21 13:24:30 +02:00
xiaomi.py Xiaomi gateway: Device support for the Aqara Water Leak Sensor (sensor_wleak.aq1) (#9172) 2017-08-27 21:06:11 +02:00
zha.py zha: Handle both input and output clusters (#8410) 2017-07-10 21:16:44 -07:00
zigbee.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
zwave.py Fix off_delay for zwave trigger sensors (#8864) 2017-08-06 18:31:32 +03:00