1
mirror of https://github.com/home-assistant/core synced 2024-07-15 09:42:11 +02:00

Enable strict typing for led_ble (#107437)

This commit is contained in:
Marc Mueller 2024-01-07 10:41:54 +01:00 committed by GitHub
parent de3fde5901
commit 5a39503acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -242,6 +242,7 @@ homeassistant.components.laundrify.*
homeassistant.components.lawn_mower.*
homeassistant.components.lcn.*
homeassistant.components.ld2410_ble.*
homeassistant.components.led_ble.*
homeassistant.components.lidarr.*
homeassistant.components.lifx.*
homeassistant.components.light.*

View File

@ -53,7 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
)
)
async def _async_update():
async def _async_update() -> None:
"""Update the device state."""
try:
await led_ble.update()

View File

@ -2181,6 +2181,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.led_ble.*]
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.lidarr.*]
check_untyped_defs = true
disallow_incomplete_defs = true