mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Try to register a Chromecast anyway, even if it could not be detected by get_chromecasts(), since it might be on a other network. Fixes #4469. (#4470)
This commit is contained in:
parent
0c47434aad
commit
0c6ef3b7f9
@ -81,6 +81,13 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
KNOWN_HOSTS.append(host)
|
||||
except pychromecast.ChromecastConnectionError:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
# add the device anyway, get_chromecasts couldn't find it
|
||||
casts.append(CastDevice(pychromecast.Chromecast(*host)))
|
||||
KNOWN_HOSTS.append(host)
|
||||
except pychromecast.ChromecastConnectionError:
|
||||
pass
|
||||
|
||||
add_devices(casts)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user