Bump pychromecast to 7.2.0 (#38351)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-07-29 23:46:14 +02:00
1 parent 1b593e3169
commit e3dc8a1ff2
5 files changed
+19 -12

No files matched your search

+11 -2
View File
@@ -1,16 +1,25 @@
"""Config flow for Cast."""
from pychromecast.discovery import discover_chromecasts
import functools
from pychromecast.discovery import discover_chromecasts, stop_discovery
from homeassistant import config_entries
from homeassistant.helpers import config_entry_flow
from .const import DOMAIN
from .helpers import ChromeCastZeroconf
async def _async_has_devices(hass):
"""Return if there are devices that can be discovered."""
return await hass.async_add_executor_job(discover_chromecasts)
casts, browser = await hass.async_add_executor_job(
functools.partial(
discover_chromecasts, zeroconf_instance=ChromeCastZeroconf.get_zeroconf()
)
)
stop_discovery(browser)
return casts
config_entry_flow.register_discovery_flow(
+1 -1
View File
@@ -3,7 +3,7 @@
"name": "Google Cast",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/cast",
"requirements": ["pychromecast==7.1.2"],
"requirements": ["pychromecast==7.2.0"],
"after_dependencies": ["cloud","zeroconf"],
"zeroconf": ["_googlecast._tcp.local."],
"codeowners": ["@emontnemery"]