mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Add strict typing to radio_browser (#127799)
This commit is contained in:
@ -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.*
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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 (
|
||||
|
10
mypy.ini
10
mypy.ini
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user