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