mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Add strict typing to radio_browser (#127799)
This commit is contained in:
parent
d99429463b
commit
079ba2a529
@ -369,6 +369,7 @@ homeassistant.components.pvoutput.*
|
|||||||
homeassistant.components.qnap_qsw.*
|
homeassistant.components.qnap_qsw.*
|
||||||
homeassistant.components.rabbitair.*
|
homeassistant.components.rabbitair.*
|
||||||
homeassistant.components.radarr.*
|
homeassistant.components.radarr.*
|
||||||
|
homeassistant.components.radio_browser.*
|
||||||
homeassistant.components.rainforest_raven.*
|
homeassistant.components.rainforest_raven.*
|
||||||
homeassistant.components.rainmachine.*
|
homeassistant.components.rainmachine.*
|
||||||
homeassistant.components.raspberry_pi.*
|
homeassistant.components.raspberry_pi.*
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/radio_browser",
|
"documentation": "https://www.home-assistant.io/integrations/radio_browser",
|
||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"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 mimetypes
|
||||||
|
|
||||||
|
import pycountry
|
||||||
from radios import FilterBy, Order, RadioBrowser, Station
|
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_player import MediaClass, MediaType
|
||||||
from homeassistant.components.media_source import (
|
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_return_any = true
|
||||||
warn_unreachable = 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.*]
|
[mypy-homeassistant.components.rainforest_raven.*]
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
disallow_incomplete_defs = true
|
disallow_incomplete_defs = true
|
||||||
|
@ -1815,6 +1815,9 @@ pycomfoconnect==0.5.1
|
|||||||
# homeassistant.components.coolmaster
|
# homeassistant.components.coolmaster
|
||||||
pycoolmasternet-async==0.2.2
|
pycoolmasternet-async==0.2.2
|
||||||
|
|
||||||
|
# homeassistant.components.radio_browser
|
||||||
|
pycountry==23.12.11
|
||||||
|
|
||||||
# homeassistant.components.microsoft
|
# homeassistant.components.microsoft
|
||||||
pycsspeechtts==1.0.8
|
pycsspeechtts==1.0.8
|
||||||
|
|
||||||
|
@ -1468,6 +1468,9 @@ pycomfoconnect==0.5.1
|
|||||||
# homeassistant.components.coolmaster
|
# homeassistant.components.coolmaster
|
||||||
pycoolmasternet-async==0.2.2
|
pycoolmasternet-async==0.2.2
|
||||||
|
|
||||||
|
# homeassistant.components.radio_browser
|
||||||
|
pycountry==23.12.11
|
||||||
|
|
||||||
# homeassistant.components.microsoft
|
# homeassistant.components.microsoft
|
||||||
pycsspeechtts==1.0.8
|
pycsspeechtts==1.0.8
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user