mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
parent
f12bd7ad99
commit
8e150ff1f5
@ -3,7 +3,7 @@
|
||||
"name": "Google Cast",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/cast",
|
||||
"requirements": ["pychromecast==4.2.3"],
|
||||
"requirements": ["pychromecast==5.0.0"],
|
||||
"after_dependencies": ["cloud"],
|
||||
"zeroconf": ["_googlecast._tcp.local."],
|
||||
"codeowners": ["@emontnemery"]
|
||||
|
@ -260,7 +260,6 @@ class CastDevice(MediaPlayerDevice):
|
||||
# will automatically be picked up.
|
||||
return
|
||||
|
||||
# pylint: disable=protected-access
|
||||
_LOGGER.debug(
|
||||
"[%s %s (%s:%s)] Connecting to cast device by service %s",
|
||||
self.entity_id,
|
||||
@ -270,7 +269,7 @@ class CastDevice(MediaPlayerDevice):
|
||||
self.services,
|
||||
)
|
||||
chromecast = await self.hass.async_add_executor_job(
|
||||
pychromecast._get_chromecast_from_service,
|
||||
pychromecast.get_chromecast_from_service,
|
||||
(
|
||||
self.services,
|
||||
ChromeCastZeroconf.get_zeroconf(),
|
||||
|
@ -1211,7 +1211,7 @@ pycfdns==0.0.1
|
||||
pychannels==1.0.0
|
||||
|
||||
# homeassistant.components.cast
|
||||
pychromecast==4.2.3
|
||||
pychromecast==5.0.0
|
||||
|
||||
# homeassistant.components.cmus
|
||||
pycmus==0.1.1
|
||||
|
@ -484,7 +484,7 @@ pyblackbird==0.5
|
||||
pybotvac==0.0.17
|
||||
|
||||
# homeassistant.components.cast
|
||||
pychromecast==4.2.3
|
||||
pychromecast==5.0.0
|
||||
|
||||
# homeassistant.components.coolmaster
|
||||
pycoolmasternet==0.0.4
|
||||
|
@ -114,7 +114,7 @@ async def async_setup_media_player_cast(hass: HomeAssistantType, info: Chromecas
|
||||
cast.CastStatusListener = MagicMock()
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.cast.discovery.pychromecast._get_chromecast_from_service",
|
||||
"homeassistant.components.cast.discovery.pychromecast.get_chromecast_from_service",
|
||||
return_value=chromecast,
|
||||
) as get_chromecast, patch(
|
||||
"homeassistant.components.cast.discovery.pychromecast.start_discovery",
|
||||
|
Loading…
x
Reference in New Issue
Block a user