diff --git a/homeassistant/components/radio_browser/manifest.json b/homeassistant/components/radio_browser/manifest.json index 34d82a5ae080..caec3d76ae80 100644 --- a/homeassistant/components/radio_browser/manifest.json +++ b/homeassistant/components/radio_browser/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://www.home-assistant.io/integrations/radio_browser", "integration_type": "service", "iot_class": "cloud_polling", - "requirements": ["radios==1.0.0", "pycountry==24.6.1"], + "requirements": ["radios==2.0.1"], "single_config_entry": true } diff --git a/homeassistant/components/radio_browser/media_source.py b/homeassistant/components/radio_browser/media_source.py index 125b04658954..4fe7867545df 100644 --- a/homeassistant/components/radio_browser/media_source.py +++ b/homeassistant/components/radio_browser/media_source.py @@ -3,7 +3,6 @@ import mimetypes from typing import override -import pycountry from radios import FilterBy, Order, RadioBrowser, RadioBrowserError, Station from homeassistant.components.media_player import ( @@ -221,9 +220,6 @@ class RadioMediaSource(MediaSource): # We show country in the root additionally, when there is no item if not item.identifier or category == "country": - # Trigger the lazy loading of the country database - # to happen inside the executor - await self.hass.async_add_executor_job(lambda: len(pycountry.countries)) countries = await radios.countries(order=Order.NAME) return [ BrowseMediaSource( diff --git a/requirements_all.txt b/requirements_all.txt index 2583573d9b26..8320edf77ee3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2150,9 +2150,6 @@ pycomfoconnect==0.5.1 # homeassistant.components.coolmaster pycoolmasternet-async==0.2.6 -# homeassistant.components.radio_browser -pycountry==24.6.1 - # homeassistant.components.microsoft pycsspeechtts==1.0.8 @@ -2948,7 +2945,7 @@ qnapstats==0.4.0 quantum-gateway==0.0.8 # homeassistant.components.radio_browser -radios==1.0.0 +radios==2.0.1 # homeassistant.components.radiotherm radiotherm==2.1.0