mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Merge pull request #1133 from balloob/cast-fix
Fix Chromecast discovery
This commit is contained in:
commit
8b7cfc831d
@ -56,8 +56,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
hosts = [(config[CONF_HOST], DEFAULT_PORT)]
|
||||
|
||||
else:
|
||||
hosts = [host for host in pychromecast.discover_chromecasts()
|
||||
if host not in KNOWN_HOSTS]
|
||||
hosts = [tuple(dev[:2]) for dev in pychromecast.discover_chromecasts()
|
||||
if tuple(dev[:2]) not in KNOWN_HOSTS]
|
||||
|
||||
casts = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user