Enable strict typing for p1_monitor (#107301)

This commit is contained in:
Marc Mueller 2024-01-06 10:38:50 +01:00 committed by GitHub
parent 135a718a0e
commit 902d5a79ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -297,6 +297,7 @@ homeassistant.components.opensky.*
homeassistant.components.openuv.*
homeassistant.components.otbr.*
homeassistant.components.overkiz.*
homeassistant.components.p1_monitor.*
homeassistant.components.peco.*
homeassistant.components.persistent_notification.*
homeassistant.components.pi_hole.*

View File

@ -321,4 +321,4 @@ class P1MonitorSensorEntity(
)
if isinstance(value, str):
return value.lower()
return value
return value # type: ignore[no-any-return]

View File

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