commit
7cb7c76a83
|
@ -155,6 +155,7 @@ class MqttBinarySensor(MqttAvailability, MqttDiscoveryUpdate,
|
|||
|
||||
if self._delay_listener is not None:
|
||||
self._delay_listener()
|
||||
self._delay_listener = None
|
||||
|
||||
if (self._state and self._off_delay is not None):
|
||||
self._delay_listener = evt.async_call_later(
|
||||
|
|
|
@ -22,7 +22,7 @@ from homeassistant.const import (
|
|||
ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
REQUIREMENTS = ['pydaikin==0.4']
|
||||
REQUIREMENTS = ['pydaikin==0.6']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ def validate_options(value):
|
|||
if (CONF_SET_POSITION_TOPIC in value and
|
||||
CONF_GET_POSITION_TOPIC not in value):
|
||||
raise vol.Invalid(
|
||||
"Set position topic must be set together with get position topic.")
|
||||
"set_position_topic must be set together with position_topic.")
|
||||
return value
|
||||
|
||||
|
||||
|
@ -287,7 +287,7 @@ class MqttCover(MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo,
|
|||
float(payload), COVER_PAYLOAD)
|
||||
if 0 <= percentage_payload <= 100:
|
||||
self._position = percentage_payload
|
||||
self._state = self._position == 0
|
||||
self._state = self._position == self._position_closed
|
||||
else:
|
||||
_LOGGER.warning(
|
||||
"Payload is not integer within range: %s",
|
||||
|
@ -451,7 +451,7 @@ class MqttCover(MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo,
|
|||
mqtt.async_publish(self.hass, self._set_position_topic,
|
||||
position, self._qos, self._retain)
|
||||
if self._optimistic:
|
||||
self._state = percentage_position == 0
|
||||
self._state = percentage_position == self._position_closed
|
||||
self._position = percentage_position
|
||||
self.async_schedule_update_ha_state()
|
||||
|
||||
|
|
|
@ -19,12 +19,11 @@ from homeassistant.helpers import discovery
|
|||
from homeassistant.helpers.discovery import load_platform
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
REQUIREMENTS = ['pydaikin==0.4']
|
||||
REQUIREMENTS = ['pydaikin==0.6']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DOMAIN = 'daikin'
|
||||
HTTP_RESOURCES = ['aircon/get_sensor_info', 'aircon/get_control_info']
|
||||
|
||||
ATTR_TARGET_TEMPERATURE = 'target_temperature'
|
||||
ATTR_INSIDE_TEMPERATURE = 'inside_temperature'
|
||||
|
@ -128,10 +127,7 @@ class DaikinApi:
|
|||
def update(self, **kwargs):
|
||||
"""Pull the latest data from Daikin."""
|
||||
try:
|
||||
for resource in HTTP_RESOURCES:
|
||||
self.device.values.update(
|
||||
self.device.get_resource(resource)
|
||||
)
|
||||
self.device.update_status()
|
||||
except timeout:
|
||||
_LOGGER.warning(
|
||||
"Connection failed for %s", self.ip_address
|
||||
|
|
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_MODE,
|
||||
CONF_PROTOCOL)
|
||||
|
||||
REQUIREMENTS = ['aioasuswrt==1.1.2']
|
||||
REQUIREMENTS = ['aioasuswrt==1.1.6']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
DOMAIN = 'edp_redy'
|
||||
EDP_REDY = 'edp_redy'
|
||||
DATA_UPDATE_TOPIC = '{0}_data_update'.format(DOMAIN)
|
||||
UPDATE_INTERVAL = 30
|
||||
UPDATE_INTERVAL = 60
|
||||
|
||||
REQUIREMENTS = ['edp_redy==0.0.2']
|
||||
|
||||
|
|
|
@ -246,7 +246,8 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
|
|||
|
||||
for category, values in matches.items():
|
||||
# Draw custom category regions/areas
|
||||
if self._category_areas[category] != [0, 0, 1, 1]:
|
||||
if (category in self._category_areas
|
||||
and self._category_areas[category] != [0, 0, 1, 1]):
|
||||
label = "{} Detection Area".format(category.capitalize())
|
||||
draw_box(draw, self._category_areas[category], img_width,
|
||||
img_height, label, (0, 255, 0))
|
||||
|
|
|
@ -9,13 +9,12 @@ import logging
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA,
|
||||
NOTIFY_SERVICE_SCHEMA,
|
||||
BaseNotificationService,
|
||||
ATTR_MESSAGE, ATTR_DATA)
|
||||
|
||||
from homeassistant.components.hangouts.const \
|
||||
import (DOMAIN, SERVICE_SEND_MESSAGE, MESSAGE_DATA_SCHEMA,
|
||||
TARGETS_SCHEMA, CONF_DEFAULT_CONVERSATIONS)
|
||||
import (DOMAIN, SERVICE_SEND_MESSAGE, TARGETS_SCHEMA,
|
||||
CONF_DEFAULT_CONVERSATIONS)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -25,11 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
vol.Required(CONF_DEFAULT_CONVERSATIONS): [TARGETS_SCHEMA]
|
||||
})
|
||||
|
||||
NOTIFY_SERVICE_SCHEMA = NOTIFY_SERVICE_SCHEMA.extend({
|
||||
vol.Optional(ATTR_TARGET): [TARGETS_SCHEMA],
|
||||
vol.Optional(ATTR_DATA, default={}): MESSAGE_DATA_SCHEMA
|
||||
})
|
||||
|
||||
|
||||
def get_service(hass, config, discovery_info=None):
|
||||
"""Get the Hangouts notification service."""
|
||||
|
@ -61,8 +55,9 @@ class HangoutsNotificationService(BaseNotificationService):
|
|||
service_data = {
|
||||
ATTR_TARGET: target_conversations,
|
||||
ATTR_MESSAGE: messages,
|
||||
ATTR_DATA: kwargs[ATTR_DATA]
|
||||
}
|
||||
if kwargs[ATTR_DATA]:
|
||||
service_data[ATTR_DATA] = kwargs[ATTR_DATA]
|
||||
|
||||
return self.hass.services.call(
|
||||
DOMAIN, SERVICE_SEND_MESSAGE, service_data=service_data)
|
||||
|
|
|
@ -27,7 +27,7 @@ CONFIG_SCHEMA = vol.Schema({
|
|||
DOMAIN: vol.Schema({
|
||||
vol.Required(CONF_EMAIL): cv.string,
|
||||
vol.Required(CONF_PASSWORD): cv.string,
|
||||
vol.Optional(CONF_TIMEOUT, DEFAULT_TIMEOUT): cv.positive_int,
|
||||
vol.Optional(CONF_TIMEOUT, default=DEFAULT_TIMEOUT): cv.positive_int,
|
||||
})
|
||||
}, extra=vol.ALLOW_EXTRA)
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS
|
|||
from .util import (check_node_schema, check_value_schema, node_name,
|
||||
check_has_unique_id, is_node_parsed)
|
||||
|
||||
REQUIREMENTS = ['pydispatcher==2.0.5', 'homeassistant-pyozw==0.1.0']
|
||||
REQUIREMENTS = ['pydispatcher==2.0.5', 'homeassistant-pyozw==0.1.1']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"""Constants used by Home Assistant components."""
|
||||
MAJOR_VERSION = 0
|
||||
MINOR_VERSION = 82
|
||||
PATCH_VERSION = '0'
|
||||
PATCH_VERSION = '1'
|
||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||
REQUIRED_PYTHON_VER = (3, 5, 3)
|
||||
|
|
|
@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
|
|||
yaml = YAML(typ='rt')
|
||||
yaml.preserve_quotes = True
|
||||
else:
|
||||
ExtSafeConstructor.name = fname
|
||||
if not hasattr(ExtSafeConstructor, 'name'):
|
||||
ExtSafeConstructor.name = fname
|
||||
yaml = YAML(typ='safe')
|
||||
yaml.Constructor = ExtSafeConstructor
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ abodepy==0.14.0
|
|||
afsapi==0.0.4
|
||||
|
||||
# homeassistant.components.device_tracker.asuswrt
|
||||
aioasuswrt==1.1.2
|
||||
aioasuswrt==1.1.6
|
||||
|
||||
# homeassistant.components.device_tracker.automatic
|
||||
aioautomatic==0.6.5
|
||||
|
@ -479,7 +479,7 @@ holidays==0.9.8
|
|||
home-assistant-frontend==20181103.3
|
||||
|
||||
# homeassistant.components.zwave
|
||||
homeassistant-pyozw==0.1.0
|
||||
homeassistant-pyozw==0.1.1
|
||||
|
||||
# homeassistant.components.homekit_controller
|
||||
# homekit==0.10
|
||||
|
@ -865,7 +865,7 @@ pycsspeechtts==1.0.2
|
|||
|
||||
# homeassistant.components.daikin
|
||||
# homeassistant.components.climate.daikin
|
||||
pydaikin==0.4
|
||||
pydaikin==0.6
|
||||
|
||||
# homeassistant.components.deconz
|
||||
pydeconz==47
|
||||
|
|
Loading…
Reference in New Issue