mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 10:48:01 +02:00
Add Spotify to strict typing (#128846)
This commit is contained in:
committed by
GitHub
parent
c46cccc3cd
commit
49fafcc68a
@ -424,6 +424,7 @@ homeassistant.components.snooz.*
|
|||||||
homeassistant.components.solarlog.*
|
homeassistant.components.solarlog.*
|
||||||
homeassistant.components.sonarr.*
|
homeassistant.components.sonarr.*
|
||||||
homeassistant.components.speedtestdotnet.*
|
homeassistant.components.speedtestdotnet.*
|
||||||
|
homeassistant.components.spotify.*
|
||||||
homeassistant.components.sql.*
|
homeassistant.components.sql.*
|
||||||
homeassistant.components.squeezebox.*
|
homeassistant.components.squeezebox.*
|
||||||
homeassistant.components.ssdp.*
|
homeassistant.components.ssdp.*
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
"""Provide info to system health."""
|
"""Provide info to system health."""
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from homeassistant.components import system_health
|
from homeassistant.components import system_health
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
|
|
||||||
@ -12,7 +14,7 @@ def async_register(
|
|||||||
register.async_register_info(system_health_info)
|
register.async_register_info(system_health_info)
|
||||||
|
|
||||||
|
|
||||||
async def system_health_info(hass):
|
async def system_health_info(hass: HomeAssistant) -> dict[str, Any]:
|
||||||
"""Get info for the info page."""
|
"""Get info for the info page."""
|
||||||
return {
|
return {
|
||||||
"api_endpoint_reachable": system_health.async_check_can_reach_url(
|
"api_endpoint_reachable": system_health.async_check_can_reach_url(
|
||||||
|
14
mypy.ini
14
mypy.ini
@ -3995,6 +3995,17 @@ disallow_untyped_defs = true
|
|||||||
warn_return_any = true
|
warn_return_any = true
|
||||||
warn_unreachable = true
|
warn_unreachable = true
|
||||||
|
|
||||||
|
[mypy-homeassistant.components.spotify.*]
|
||||||
|
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
|
||||||
|
no_implicit_reexport = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.sql.*]
|
[mypy-homeassistant.components.sql.*]
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
disallow_incomplete_defs = true
|
disallow_incomplete_defs = true
|
||||||
@ -4930,9 +4941,6 @@ warn_unreachable = true
|
|||||||
[mypy-homeassistant.components.application_credentials.*]
|
[mypy-homeassistant.components.application_credentials.*]
|
||||||
no_implicit_reexport = true
|
no_implicit_reexport = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.spotify.*]
|
|
||||||
no_implicit_reexport = true
|
|
||||||
|
|
||||||
[mypy-tests.*]
|
[mypy-tests.*]
|
||||||
check_untyped_defs = false
|
check_untyped_defs = false
|
||||||
disallow_incomplete_defs = false
|
disallow_incomplete_defs = false
|
||||||
|
Reference in New Issue
Block a user