1 """The Radio Browser integration."""
3 from __future__
import annotations
5 from aiodns.error
import DNSError
6 from radios
import RadioBrowser, RadioBrowserError
14 type RadioBrowserConfigEntry = ConfigEntry[RadioBrowser]
18 hass: HomeAssistant, entry: RadioBrowserConfigEntry
20 """Set up Radio Browser from a config entry.
22 This integration doesn't set up any entities, as it provides a media source
26 radios = RadioBrowser(session=session, user_agent=f
"HomeAssistant/{__version__}")
30 except (DNSError, RadioBrowserError)
as err:
33 entry.runtime_data = radios
38 """Unload a config entry."""
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, RadioBrowserConfigEntry entry)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)