mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
commit
088584b66d
@ -24,7 +24,7 @@ from homeassistant.core import callback
|
|||||||
from homeassistant.helpers.translation import async_get_translations
|
from homeassistant.helpers.translation import async_get_translations
|
||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
|
|
||||||
REQUIREMENTS = ['home-assistant-frontend==20190109.0']
|
REQUIREMENTS = ['home-assistant-frontend==20190109.1']
|
||||||
|
|
||||||
DOMAIN = 'frontend'
|
DOMAIN = 'frontend'
|
||||||
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
|
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
|
||||||
|
@ -82,7 +82,10 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
|||||||
self._available = False
|
self._available = False
|
||||||
return
|
return
|
||||||
_LOGGER.debug('self._state=%s', self._state)
|
_LOGGER.debug('self._state=%s', self._state)
|
||||||
robot_alert = ALERTS.get(self._state['alert'])
|
if 'alert' in self._state:
|
||||||
|
robot_alert = ALERTS.get(self._state['alert'])
|
||||||
|
else:
|
||||||
|
robot_alert = None
|
||||||
if self._state['state'] == 1:
|
if self._state['state'] == 1:
|
||||||
if self._state['details']['isCharging']:
|
if self._state['details']['isCharging']:
|
||||||
self._clean_state = STATE_DOCKED
|
self._clean_state = STATE_DOCKED
|
||||||
|
@ -95,8 +95,7 @@ async def async_setup(hass, config):
|
|||||||
context={'source': config_entries.SOURCE_IMPORT},
|
context={'source': config_entries.SOURCE_IMPORT},
|
||||||
data={
|
data={
|
||||||
CONF_USB_PATH: conf[CONF_USB_PATH],
|
CONF_USB_PATH: conf[CONF_USB_PATH],
|
||||||
CONF_RADIO_TYPE: conf.get(CONF_RADIO_TYPE).value,
|
CONF_RADIO_TYPE: conf.get(CONF_RADIO_TYPE).value
|
||||||
ENABLE_QUIRKS: conf[ENABLE_QUIRKS]
|
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
return True
|
return True
|
||||||
@ -107,17 +106,17 @@ async def async_setup_entry(hass, config_entry):
|
|||||||
|
|
||||||
Will automatically load components to support devices found on the network.
|
Will automatically load components to support devices found on the network.
|
||||||
"""
|
"""
|
||||||
if config_entry.data.get(ENABLE_QUIRKS):
|
|
||||||
# needs to be done here so that the ZHA module is finished loading
|
|
||||||
# before zhaquirks is imported
|
|
||||||
# pylint: disable=W0611, W0612
|
|
||||||
import zhaquirks # noqa
|
|
||||||
|
|
||||||
hass.data[DATA_ZHA] = hass.data.get(DATA_ZHA, {})
|
hass.data[DATA_ZHA] = hass.data.get(DATA_ZHA, {})
|
||||||
hass.data[DATA_ZHA][DATA_ZHA_DISPATCHERS] = []
|
hass.data[DATA_ZHA][DATA_ZHA_DISPATCHERS] = []
|
||||||
|
|
||||||
config = hass.data[DATA_ZHA].get(DATA_ZHA_CONFIG, {})
|
config = hass.data[DATA_ZHA].get(DATA_ZHA_CONFIG, {})
|
||||||
|
|
||||||
|
if config.get(ENABLE_QUIRKS, True):
|
||||||
|
# needs to be done here so that the ZHA module is finished loading
|
||||||
|
# before zhaquirks is imported
|
||||||
|
# pylint: disable=W0611, W0612
|
||||||
|
import zhaquirks # noqa
|
||||||
|
|
||||||
usb_path = config_entry.data.get(CONF_USB_PATH)
|
usb_path = config_entry.data.get(CONF_USB_PATH)
|
||||||
baudrate = config.get(CONF_BAUDRATE, DEFAULT_BAUDRATE)
|
baudrate = config.get(CONF_BAUDRATE, DEFAULT_BAUDRATE)
|
||||||
radio_type = config_entry.data.get(CONF_RADIO_TYPE)
|
radio_type = config_entry.data.get(CONF_RADIO_TYPE)
|
||||||
|
@ -129,7 +129,6 @@ def populate_data():
|
|||||||
|
|
||||||
SINGLE_INPUT_CLUSTER_DEVICE_CLASS.update({
|
SINGLE_INPUT_CLUSTER_DEVICE_CLASS.update({
|
||||||
zcl.clusters.general.OnOff: 'switch',
|
zcl.clusters.general.OnOff: 'switch',
|
||||||
zcl.clusters.general.LevelControl: 'light',
|
|
||||||
zcl.clusters.measurement.RelativeHumidity: 'sensor',
|
zcl.clusters.measurement.RelativeHumidity: 'sensor',
|
||||||
zcl.clusters.measurement.TemperatureMeasurement: 'sensor',
|
zcl.clusters.measurement.TemperatureMeasurement: 'sensor',
|
||||||
zcl.clusters.measurement.PressureMeasurement: 'sensor',
|
zcl.clusters.measurement.PressureMeasurement: 'sensor',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 85
|
MINOR_VERSION = 85
|
||||||
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)
|
||||||
|
@ -204,8 +204,9 @@ async def entity_service_call(hass, platforms, func, call):
|
|||||||
if ATTR_ENTITY_ID in call.data:
|
if ATTR_ENTITY_ID in call.data:
|
||||||
target_all_entities = call.data[ATTR_ENTITY_ID] == ENTITY_MATCH_ALL
|
target_all_entities = call.data[ATTR_ENTITY_ID] == ENTITY_MATCH_ALL
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning('Not passing an entity ID to a service to target all '
|
_LOGGER.warning(
|
||||||
'entities is deprecated. Use instead: entity_id: "*"')
|
'Not passing an entity ID to a service to target all entities is '
|
||||||
|
'deprecated. Use instead: entity_id: "%s"', ENTITY_MATCH_ALL)
|
||||||
target_all_entities = True
|
target_all_entities = True
|
||||||
|
|
||||||
if not target_all_entities:
|
if not target_all_entities:
|
||||||
|
@ -511,7 +511,7 @@ hole==0.3.0
|
|||||||
holidays==0.9.8
|
holidays==0.9.8
|
||||||
|
|
||||||
# homeassistant.components.frontend
|
# homeassistant.components.frontend
|
||||||
home-assistant-frontend==20190109.0
|
home-assistant-frontend==20190109.1
|
||||||
|
|
||||||
# homeassistant.components.zwave
|
# homeassistant.components.zwave
|
||||||
homeassistant-pyozw==0.1.2
|
homeassistant-pyozw==0.1.2
|
||||||
|
@ -104,7 +104,7 @@ hdate==0.7.5
|
|||||||
holidays==0.9.8
|
holidays==0.9.8
|
||||||
|
|
||||||
# homeassistant.components.frontend
|
# homeassistant.components.frontend
|
||||||
home-assistant-frontend==20190109.0
|
home-assistant-frontend==20190109.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