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
..
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2018-01-18 22:36:29 -08:00
2017-04-29 22:04:49 -07:00
2017-05-02 22:47:20 +02:00
2017-04-29 22:04:49 -07:00
2018-01-22 22:54:41 -08:00
2018-01-15 14:24:12 -08:00
2018-01-20 16:29:50 +01:00
2017-09-23 17:15:46 +02:00
2017-10-07 15:11:41 +02:00
2018-01-20 22:35:38 -08:00
2017-10-27 16:19:47 +02:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2017-04-29 22:04:49 -07:00
2017-10-29 11:15:57 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2017-10-08 20:14:39 +02:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2018-01-09 15:30:00 +01:00
2017-07-26 14:03:29 +02:00
2017-12-07 07:47:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00
2018-01-20 22:35:38 -08:00
2017-04-29 22:04:49 -07:00