Compare commits

...

10 Commits

Author SHA1 Message Date
Paulus Schoutsen 2ac16b12c1 Merge pull request #16770 from home-assistant/rc
0.78.2
2018-09-21 11:40:04 +02:00
Paulus Schoutsen 44a98fb77a Bumped version to 0.78.2 2018-09-20 20:26:25 +02:00
Fabian Affolter 03d93bea34 Upgrade zeroconf to 0.21.2 (#16730) 2018-09-20 20:25:39 +02:00
Fabian Affolter 9dbac9b033 Upgrade zeroconf to 0.21.1 (#16687) 2018-09-20 20:25:38 +02:00
tadly 9e86f0498b Upgrade zeroconf to 0.21.0 (#16647) 2018-09-20 20:25:38 +02:00
Paulus Schoutsen 0d0d5c8c2c Merge pull request #16742 from home-assistant/rc
0.78.1
2018-09-20 13:55:09 +02:00
Paulus Schoutsen c7d5f7698e Bumped version to 0.78.1 2018-09-20 11:32:26 +02:00
Jason Hu 9bbd61cbe4 Upgrade netdisco to 2.1.0 (#16735) 2018-09-20 11:32:16 +02:00
Jason Hu 7a7a164cb8 Handle chromecast CONNECTION_STATUS_DISCONNECTED event (#16732) 2018-09-20 11:32:15 +02:00
Andreas Oberritter 8379567636 SnmpSensor: Fix async_update (#16679) (#16716)
Bugfix provided by awarecan.
2018-09-20 11:32:14 +02:00
6 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time
from homeassistant.helpers.discovery import async_load_platform, async_discover
import homeassistant.util.dt as dt_util
REQUIREMENTS = ['netdisco==2.0.0']
REQUIREMENTS = ['netdisco==2.1.0']
DOMAIN = 'discovery'
+18 -5
View File
@@ -369,7 +369,8 @@ class CastDevice(MediaPlayerDevice):
if self._chromecast is not None:
if old_cast_info.host_port == cast_info.host_port:
# Nothing connection-related updated
_LOGGER.debug("No connection related update: %s",
cast_info.host_port)
return
await self._async_disconnect()
@@ -403,7 +404,12 @@ class CastDevice(MediaPlayerDevice):
await self.hass.async_add_job(self._chromecast.disconnect)
# Invalidate some attributes
self._invalidate()
self.async_schedule_update_ha_state()
def _invalidate(self):
"""Invalidate some attributes."""
self._chromecast = None
self.cast_status = None
self.media_status = None
@@ -412,8 +418,6 @@ class CastDevice(MediaPlayerDevice):
self._status_listener.invalidate()
self._status_listener = None
self.async_schedule_update_ha_state()
# ========== Callbacks ==========
def new_cast_status(self, cast_status):
"""Handle updates of the cast status."""
@@ -428,7 +432,16 @@ class CastDevice(MediaPlayerDevice):
def new_connection_status(self, connection_status):
"""Handle updates of connection status."""
from pychromecast.socket_client import CONNECTION_STATUS_CONNECTED
from pychromecast.socket_client import CONNECTION_STATUS_CONNECTED, \
CONNECTION_STATUS_DISCONNECTED
_LOGGER.debug("Received cast device connection status: %s",
connection_status.status)
if connection_status.status == CONNECTION_STATUS_DISCONNECTED:
self._available = False
self._invalidate()
self.schedule_update_ha_state()
return
new_available = connection_status.status == CONNECTION_STATUS_CONNECTED
if new_available != self._available:
+1 -1
View File
@@ -182,7 +182,7 @@ class SnmpSensor(Entity):
if value is None:
value = STATE_UNKNOWN
elif self._value_template is not None:
value = self._value_template.render_with_possible_json_value(
value = self._value_template.async_render_with_possible_json_value(
value, STATE_UNKNOWN)
self._state = value
+1 -1
View File
@@ -12,7 +12,7 @@ import voluptuous as vol
from homeassistant import util
from homeassistant.const import (EVENT_HOMEASSISTANT_STOP, __version__)
REQUIREMENTS = ['zeroconf==0.20.0']
REQUIREMENTS = ['zeroconf==0.21.2']
_LOGGER = logging.getLogger(__name__)
+1 -1
View File
@@ -2,7 +2,7 @@
"""Constants used by Home Assistant components."""
MAJOR_VERSION = 0
MINOR_VERSION = 78
PATCH_VERSION = '0'
PATCH_VERSION = '2'
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
REQUIRED_PYTHON_VER = (3, 5, 3)
+2 -2
View File
@@ -611,7 +611,7 @@ ndms2_client==0.0.4
netdata==0.1.2
# homeassistant.components.discovery
netdisco==2.0.0
netdisco==2.1.0
# homeassistant.components.sensor.neurio_energy
neurio==0.3.1
@@ -1523,7 +1523,7 @@ youtube_dl==2018.09.10
zengge==0.2
# homeassistant.components.zeroconf
zeroconf==0.20.0
zeroconf==0.21.2
# homeassistant.components.climate.zhong_hong
zhong_hong_hvac==1.0.9