Add strict typing to radio_browser (#127799)

This commit is contained in:
Marc Mueller
2024-10-07 12:47:08 +02:00
committed by GitHub
parent d99429463b
commit 079ba2a529
6 changed files with 19 additions and 2 deletions

View File

@ -369,6 +369,7 @@ homeassistant.components.pvoutput.*
homeassistant.components.qnap_qsw.*
homeassistant.components.rabbitair.*
homeassistant.components.radarr.*
homeassistant.components.radio_browser.*
homeassistant.components.rainforest_raven.*
homeassistant.components.rainmachine.*
homeassistant.components.raspberry_pi.*

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/radio_browser",
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["radios==0.3.1"]
"requirements": ["radios==0.3.1", "pycountry==23.12.11"]
}

View File

@ -4,8 +4,8 @@ from __future__ import annotations
import mimetypes
import pycountry
from radios import FilterBy, Order, RadioBrowser, Station
from radios.radio_browser import pycountry
from homeassistant.components.media_player import MediaClass, MediaType
from homeassistant.components.media_source import (

View File

@ -3445,6 +3445,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.radio_browser.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.rainforest_raven.*]
check_untyped_defs = true
disallow_incomplete_defs = true

View File

@ -1815,6 +1815,9 @@ pycomfoconnect==0.5.1
# homeassistant.components.coolmaster
pycoolmasternet-async==0.2.2
# homeassistant.components.radio_browser
pycountry==23.12.11
# homeassistant.components.microsoft
pycsspeechtts==1.0.8

View File

@ -1468,6 +1468,9 @@ pycomfoconnect==0.5.1
# homeassistant.components.coolmaster
pycoolmasternet-async==0.2.2
# homeassistant.components.radio_browser
pycountry==23.12.11
# homeassistant.components.microsoft
pycsspeechtts==1.0.8