mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Snapcast: bump version and enable reconnect. (#10626)
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 <losinski@wh2.tu-dresden.de>
This commit is contained in:
parent
072ed7ea13
commit
693d32fa68
@ -20,7 +20,7 @@ from homeassistant.const import (
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.config import load_yaml_config_file
|
from homeassistant.config import load_yaml_config_file
|
||||||
|
|
||||||
REQUIREMENTS = ['snapcast==2.0.7']
|
REQUIREMENTS = ['snapcast==2.0.8']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
server = yield from snapcast.control.create_server(
|
server = yield from snapcast.control.create_server(
|
||||||
hass.loop, host, port)
|
hass.loop, host, port, reconnect=True)
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
_LOGGER.error('Could not connect to Snapcast server at %s:%d',
|
_LOGGER.error('Could not connect to Snapcast server at %s:%d',
|
||||||
host, port)
|
host, port)
|
||||||
|
@ -1022,7 +1022,7 @@ sleepyq==0.6
|
|||||||
# smbus-cffi==0.5.1
|
# smbus-cffi==0.5.1
|
||||||
|
|
||||||
# homeassistant.components.media_player.snapcast
|
# homeassistant.components.media_player.snapcast
|
||||||
snapcast==2.0.7
|
snapcast==2.0.8
|
||||||
|
|
||||||
# homeassistant.components.climate.honeywell
|
# homeassistant.components.climate.honeywell
|
||||||
somecomfort==0.4.1
|
somecomfort==0.4.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user