mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix Chromecast discovery
This commit is contained in:
parent
077797ac4f
commit
8be9aaba4f
@ -56,8 +56,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
hosts = [(config[CONF_HOST], DEFAULT_PORT)]
|
hosts = [(config[CONF_HOST], DEFAULT_PORT)]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
hosts = [host for host in pychromecast.discover_chromecasts()
|
hosts = [tuple(dev[:2]) for dev in pychromecast.discover_chromecasts()
|
||||||
if host not in KNOWN_HOSTS]
|
if tuple(dev[:2]) not in KNOWN_HOSTS]
|
||||||
|
|
||||||
casts = []
|
casts = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user