From 3d723ee8d19c5ca672f15e3bdaa677585d2f6207 Mon Sep 17 00:00:00 2001 From: Jan Losinski Date: Thu, 16 Nov 2017 23:55:57 +0100 Subject: [PATCH] Snapcast: bump version and enable reconnect. This bumps the used snapcast version to 2.0.8 and enables the new reconnect feature that causes the component to reconnect to a server if the connection was lost. This fixes the ned to restart Home Assstant after a snapcast reboot, as described in issue #10264. Signed-off-by: Jan Losinski --- homeassistant/components/media_player/snapcast.py | 4 ++-- requirements_all.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/media_player/snapcast.py b/homeassistant/components/media_player/snapcast.py index 3f1607831e5c2..54015bec27735 100644 --- a/homeassistant/components/media_player/snapcast.py +++ b/homeassistant/components/media_player/snapcast.py @@ -20,7 +20,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.config import load_yaml_config_file -REQUIREMENTS = ['snapcast==2.0.7'] +REQUIREMENTS = ['snapcast==2.0.8'] _LOGGER = logging.getLogger(__name__) @@ -80,7 +80,7 @@ def _handle_service(service): try: server = yield from snapcast.control.create_server( - hass.loop, host, port) + hass.loop, host, port, reconnect=True) except socket.gaierror: _LOGGER.error('Could not connect to Snapcast server at %s:%d', host, port) diff --git a/requirements_all.txt b/requirements_all.txt index d22090708fe82..2c1112ae49ec0 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1022,7 +1022,7 @@ sleepyq==0.6 # smbus-cffi==0.5.1 # homeassistant.components.media_player.snapcast -snapcast==2.0.7 +snapcast==2.0.8 # homeassistant.components.climate.honeywell somecomfort==0.4.1