hass-core/homeassistant/components/switch
Paul Annekov 3417c6ad8d Checking Xiaomi Aqara devices unavailability states (#11631)
* added unavailability tracker, updated sensor component

* change hass argument position according to position in binary_sensor

* added hass argument to binary_sensor, updated is_on(), it can be UNAVAILABLE now

* updated switch component to support unavailability feature

* updated light component to support unavailability feature

* updated cover component to support unavailability feature

* set _hass property

* added unavailability tracker, updated sensor component

* change hass argument position according to position in binary_sensor

* added hass argument to binary_sensor, updated is_on(), it can be UNAVAILABLE now

* updated switch component to support unavailability feature

* updated light component to support unavailability feature

* updated cover component to support unavailability feature

* set _hass property

* fixed error with wrong arguments number during callback call

* reset unavailability state on new message received from device

* use locks to fix race condition during managing _state property

* overriden state() method for some components to check for STATE_UNAVAILABLE and return it instead e.g. STATE_OFF

* fixed linter

* removed blank line

* use available() method instead of changing _state

* filter motion sensors 'heartbeat', was removed from PyXiaomiGateway

* remove self._hass, use self.hass set by HA on attach

* self.push_data now running in the event loop, use async_schedule_update_ha_state()

* merge fix

* removed accidentally added home-assistant-polymer

* bump PyXiaomiGateway version to 0.8.0

* bump PyXiaomiGateway to 0.8.0

* updated methods names and annotations
2018-01-23 10:22:43 +01:00
..
__init__.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
abode.py Fixed bug with all switch devices being excluded (#9555) 2017-09-24 08:22:15 +02:00
acer_projector.py Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
ads.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
android_ip_webcam.py Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
anel_pwrctrl.py Update docstrings (#7405) 2017-05-02 22:47:20 +02:00
arduino.py Migrate to voluptuous (#3737) 2016-10-11 00:56:57 -07:00
arest.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
bbb_gpio.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
broadlink.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
command_line.py Do not call update() in constructor (#8892) 2017-08-08 22:36:59 +02:00
deluge.py Add Deluge Switch Component (#9979) 2017-10-24 16:44:12 +02:00
demo.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
digital_ocean.py Use 'hass.data' instead of global (#8245) 2017-06-30 08:46:03 +02:00
digitalloggers.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00
dlink.py Change attribute names (#9277) 2017-09-03 16:07:12 +02:00
doorbird.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
edimax.py Revise power and energy units and property names. (#6212) 2017-03-19 22:02:11 +01:00
enocean.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
flux.py Move constant to 'const.py' and use already definied ones (#10204) 2017-10-29 12:32:02 +01:00
fritzdect.py Feature/fritzdect errorhandling (#11490) 2018-01-16 15:55:22 +01:00
gc100.py Add gc100 platforms and component (#10159) 2017-10-30 08:40:14 +01:00
hdmi_cec.py Update docstrings (#7405) 2017-05-02 22:47:20 +02:00
hikvisioncam.py Fix Hikvision (motion) switch bug (#10608) 2017-11-16 01:15:45 +01:00
hive.py Change line separator to LN (#11662) 2018-01-15 14:24:12 -08:00
homematic.py WIP: Homematic improvments with new hass interfaces (#9058) 2017-08-31 21:16:44 +02:00
hook.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
ihc.py Ihc component and platforms (#10916) 2018-01-20 16:29:50 +01:00
insteon_local.py Insteon local update (#11088) 2018-01-08 18:18:10 +01:00
insteon_plm.py Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
isy994.py Huge ISY994 platform cleanup, fixes support for 5.0.10 firmware (#11243) 2017-12-26 09:26:37 +01:00
kankun.py Update docstrings (#7405) 2017-05-02 22:47:20 +02: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
litejet.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
lutron_caseta.py upgrade to new pylutron_caseta with TLS (#10286) 2017-11-10 12:17:25 +01:00
mfi.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
mochad.py Reconnect before mochad switch send command (#11296) 2018-01-08 08:32:24 +01:00
modbus.py Fix handling zero values for state_on/state_off (#11264) 2017-12-21 14:24:19 +01:00
mqtt.py More support for availability reporting on MQTT components (#11336) 2018-01-01 18:32:29 -08:00
mysensors.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
mystrom.py myStrom WiFi bulbs (#7161) 2017-04-18 09:03:56 -07:00
neato.py Refactor Neato botvac components as a vacuum (#9946) 2017-11-03 14:25:26 +01:00
netio.py Fix more deprecation warnings (#7778) 2017-05-26 13:12:17 -07:00
orvibo.py Update docstrings (#7420) 2017-05-03 10:11:39 +02:00
pilight.py Pilight switch: restore last state after restart (#8580) 2017-08-22 16:40:14 +02:00
pulseaudio_loopback.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
qwikswitch.py Use constants (#5390) 2017-01-17 23:40:34 +01:00
rachio.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rainbird.py Added rainsensor (#11023) 2017-12-25 10:07:17 +01:00
raincloud.py Introducing support to Melnor RainCloud sprinkler systems (#9287) 2017-09-29 10:08:41 +02:00
rainmachine.py Fixes (#9912) 2017-10-17 09:24:52 +02:00
raspihats.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rest.py Add HTTP Basic auth to RESTful Switch (#9162) 2017-09-09 10:20:48 -07:00
rflink.py Add test cases and fix for device_defaults fire_event option. (#9567) 2017-09-24 15:47:59 -07:00
rfxtrx.py Bugfix and cleanup for Rfxtrx (#11600) 2018-01-12 11:52:53 -08:00
rpi_gpio.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
rpi_pfio.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rpi_rf.py Make the rpi_rf component thread-safe using an RLock (#11487) 2018-01-11 13:47:05 +01:00
scsgate.py Move several local services to their right domain (#11677) 2018-01-15 14:53:56 -08:00
services.yaml Update services.yaml files (#10229) 2017-10-30 21:39:12 +01:00
skybell.py Skybell (#9681) 2017-10-08 20:14:39 +02:00
snmp.py Upgrade pysnmp to 4.4.4 (#11485) 2018-01-06 19:54:15 +01:00
tellduslive.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
tellstick.py Tellstick Duo acync callback fix (#10384) 2017-11-09 15:03:35 +01:00
telnet.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
template.py Deprecate explicit entity_id in template platforms (#11123) 2018-01-10 00:06:26 -08:00
tesla.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
thinkingcleaner.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
toon.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
tplink.py Override default name for TP-Link devices (#11710) 2018-01-17 00:52:32 -08:00
transmission.py Better error handling (#11297) 2017-12-25 17:46:42 +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 verisure component names (#8251) 2017-06-30 08:53:14 +02:00
volvooncall.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
vultr.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
wake_on_lan.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
wemo.py Fix pylint 1.7.2 no-else-return issues (#8361) 2017-07-05 23:30:01 -07:00
wink.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
xiaomi_aqara.py Checking Xiaomi Aqara devices unavailability states (#11631) 2018-01-23 10:22:43 +01:00
xiaomi_miio.py python-miio version bumped. Fixes all xiaomi_miio components. (Closes: #11768) (#11837) 2018-01-20 21:27:52 +01:00
zha.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
zigbee.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
zoneminder.py Maintenance zoneminder (#4102) 2016-10-29 13:10:42 -07:00
zwave.py Update docstrings (#7405) 2017-05-02 22:47:20 +02:00