Skip to content

Commit

Permalink
Snapcast: bump version and enable reconnect.
Browse files Browse the repository at this point in the history
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 home-assistant#10264.

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
  • Loading branch information
janLo committed Nov 16, 2017
1 parent 072ed7e commit 3d723ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/media_player/snapcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d723ee

Please sign in to comment.