mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
commit
e77344f029
@ -374,11 +374,11 @@ class XiaomiCube(XiaomiBinarySensor):
|
|||||||
self._last_action = None
|
self._last_action = None
|
||||||
self._state = False
|
self._state = False
|
||||||
if 'proto' not in device or int(device['proto'][0:1]) == 1:
|
if 'proto' not in device or int(device['proto'][0:1]) == 1:
|
||||||
self._data_key = 'status'
|
data_key = 'status'
|
||||||
else:
|
else:
|
||||||
self._data_key = 'cube_status'
|
data_key = 'cube_status'
|
||||||
XiaomiBinarySensor.__init__(self, device, 'Cube', xiaomi_hub,
|
XiaomiBinarySensor.__init__(self, device, 'Cube', xiaomi_hub,
|
||||||
None, None)
|
data_key, None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
|
@ -26,7 +26,7 @@ from homeassistant.helpers.translation import async_get_translations
|
|||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
from homeassistant.util.yaml import load_yaml
|
from homeassistant.util.yaml import load_yaml
|
||||||
|
|
||||||
REQUIREMENTS = ['home-assistant-frontend==20180829.0']
|
REQUIREMENTS = ['home-assistant-frontend==20180829.1']
|
||||||
|
|
||||||
DOMAIN = 'frontend'
|
DOMAIN = 'frontend'
|
||||||
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
|
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
|
||||||
|
@ -87,6 +87,7 @@ SUPPORT_XIAOMI = SUPPORT_STATE | SUPPORT_PAUSE | \
|
|||||||
|
|
||||||
|
|
||||||
STATE_CODE_TO_STATE = {
|
STATE_CODE_TO_STATE = {
|
||||||
|
2: STATE_IDLE,
|
||||||
3: STATE_IDLE,
|
3: STATE_IDLE,
|
||||||
5: STATE_CLEANING,
|
5: STATE_CLEANING,
|
||||||
6: STATE_RETURNING,
|
6: STATE_RETURNING,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 77
|
MINOR_VERSION = 77
|
||||||
PATCH_VERSION = '0'
|
PATCH_VERSION = '1'
|
||||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||||
REQUIRED_PYTHON_VER = (3, 5, 3)
|
REQUIRED_PYTHON_VER = (3, 5, 3)
|
||||||
|
@ -442,7 +442,7 @@ hole==0.3.0
|
|||||||
holidays==0.9.6
|
holidays==0.9.6
|
||||||
|
|
||||||
# homeassistant.components.frontend
|
# homeassistant.components.frontend
|
||||||
home-assistant-frontend==20180829.0
|
home-assistant-frontend==20180829.1
|
||||||
|
|
||||||
# homeassistant.components.homekit_controller
|
# homeassistant.components.homekit_controller
|
||||||
# homekit==0.10
|
# homekit==0.10
|
||||||
|
@ -84,7 +84,7 @@ hbmqtt==0.9.2
|
|||||||
holidays==0.9.6
|
holidays==0.9.6
|
||||||
|
|
||||||
# homeassistant.components.frontend
|
# homeassistant.components.frontend
|
||||||
home-assistant-frontend==20180829.0
|
home-assistant-frontend==20180829.1
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==0.9.8
|
homematicip==0.9.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user