core/homeassistant/components/binary_sensor
Kane610 8bff813014 Improve service by allowing to reference entity id instead of deconz id (#11862)
* Improve service by allowing to reference entity id instead of deconz id

* Change from having access to full entities to only store entity id together with deconz id

* Don't use eval, there is a dict type for voluptuous

* Use entity registry instead of keeping a local registry over entity ids

* Removed old code

* Add test for get_entry

* Bump dependency to v28
Fixed call to protected member

* Use chain to iterate over dict values

* Cleanup

* Fix hound comment

* Cleanup

* Follow refactoring of entity

* Revert to using a local registry

* Remove unused import

* self.hass is automatically available when entity is registered in hass
2018-02-13 16:23:03 -08:00
..
__init__.py Additional device classes for binary sensors (#11280) 2017-12-28 18:55:22 +01:00
abode.py Abode services, events, lights, cameras, automations, quick actions. (#9310) 2017-09-18 17:39:41 +02:00
ads.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
alarmdecoder.py AlarmDecoder remove icon function as BinarySensorDevice handles it correctly now (#11467) 2018-01-05 14:29:57 -08: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 Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
axis.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
bayesian.py Use constants and update docstrings 2017-10-24 09:12:01 +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 Revert #12316 (#12329) 2018-02-11 20:33:08 -08: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 Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
deconz.py Improve service by allowing to reference entity id instead of deconz id (#11862) 2018-02-13 16:23:03 -08: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 Entity registry (#11979) 2018-01-30 10:39:39 +01: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 Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
ffmpeg_motion.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
ffmpeg_noise.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
flic.py Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
gc100.py Add gc100 platforms and component (#10159) 2017-10-30 08:40:14 +01:00
hikvision.py Entity registry (#11979) 2018-01-30 10:39:39 +01:00
hive.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
homematic.py Upgrade HomeMatic, add devices (#10845) 2017-11-28 23:16:47 -08:00
ihc.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
insteon_plm.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
iss.py Move 'show_on_map' to const (#9727) 2017-10-07 15:11:41 +02:00
isy994.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
knx.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
linode.py Linode (#9936) 2017-10-27 16:19:47 +02:00
maxcube.py maxcube: Set MAX! Window Sensor's class to 'window' (#11799) 2018-01-22 12:32:27 +01:00
mercedesme.py Fix MercedesMe - add check for unsupported features (#12342) 2018-02-12 21:07:20 -08:00
modbus.py Modbus fixes to work with pymodbus 1.3.1 (#8365) 2017-07-06 22:30:23 -07:00
mqtt.py Force update support for mqtt binary sensor (#12092) 2018-02-08 12:28:12 +01:00
mychevy.py Add basic mychevy component (#11409) 2018-01-15 21:50:56 +01:00
mysensors.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
mystrom.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
nest.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
netatmo.py Remove unique ID from netatmo (#12317) 2018-02-11 19:33:37 -08: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 Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
ping.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
raincloud.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
random.py Add Random binary sensor (#10164) 2017-10-29 11:15:57 +01:00
raspihats.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rest.py Mark REST binary_sensor unavailable if request fails (#11506) 2018-01-11 10:48:15 +01:00
rfxtrx.py Fixed rfxtrx binary_sensor KeyError on missing optional device_class (#11925) 2018-01-26 13:45:02 +01:00
ring.py Fixed update() method and removed `ding` feature from stickupcams/floodlight (#10428) 2017-11-09 01:01:20 +01:00
rpi_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
rpi_pfio.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
satel_integra.py Added satel_integra alarm panel and binary sensor platform (#9336) 2017-09-18 17:42:31 +02:00
skybell.py Skybell (#9681) 2017-10-08 20:14:39 +02:00
sleepiq.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
spc.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
tapsaff.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
tcp.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
tellduslive.py Telldus Live: Device without methods is a binary sensor (#10106) 2017-10-26 15:54:49 +02:00
template.py Return of entity_id in template platforms (#12234) 2018-02-07 22:46:14 -08:00
tesla.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
threshold.py Properly handle thresholds of zero (#12175) 2018-02-06 10:32:56 -08:00
trend.py Upgrade numpy to 1.14.0 (#11542) 2018-01-09 15:30:00 +01:00
velbus.py Velbus (#8076) 2017-07-26 14:03:29 +02:00
vera.py Added Vera scenes (#10424) 2017-12-07 07:47:19 +01:00
verisure.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
volvooncall.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
vultr.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
wemo.py Entity registry (#11979) 2018-01-30 10:39:39 +01:00
wink.py Update python-wink version and multiple wink fixes/updates. (#11833) 2018-01-25 11:31:38 -05:00
workday.py Add more workday sensor countries and update holidays library to version 0.9.3 (#11826) 2018-01-20 17:09:05 +01:00
xiaomi_aqara.py Checking Xiaomi Aqara devices unavailability states (#11631) 2018-01-23 10:22:43 +01:00
zha.py zha: Add support for XBee radios (#12205) 2018-02-06 10:46:28 -08: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