Skip to content
1 change: 1 addition & 0 deletions homeassistant/components/binary_sensor/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def state_message_received(_topic, payload, _qos):

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(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/daikin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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__)

Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/cover/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -287,7 +287,7 @@ def position_message_received(topic, payload, qos):
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",
Expand Down Expand Up @@ -451,7 +451,7 @@ async def async_set_cover_position(self, **kwargs):
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()

Expand Down
8 changes: 2 additions & 6 deletions homeassistant/components/daikin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
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'
Expand Down Expand Up @@ -128,10 +127,7 @@ def __init__(self, device, name):
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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/asuswrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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__)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/edp_redy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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']

Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/image_processing/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def _save_image(self, image, matches, paths):

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))
Expand Down
13 changes: 4 additions & 9 deletions homeassistant/components/notify/hangouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
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__)

Expand All @@ -25,11 +24,6 @@
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."""
Expand Down Expand Up @@ -61,8 +55,9 @@ def send_message(self, message="", **kwargs):
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)
2 changes: 1 addition & 1 deletion homeassistant/components/sense.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
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)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/zwave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
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__)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/util/ruamel_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down