Add Suez Water to strict typing (#105559)

This commit is contained in:
Joost Lekkerkerker 2023-12-12 14:44:17 +01:00 committed by GitHub
parent 2631fde0f7
commit 5c514b6b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -318,6 +318,7 @@ homeassistant.components.steamist.*
homeassistant.components.stookalert.*
homeassistant.components.stream.*
homeassistant.components.streamlabswater.*
homeassistant.components.suez_water.*
homeassistant.components.sun.*
homeassistant.components.surepetcare.*
homeassistant.components.switch.*

View File

@ -74,7 +74,7 @@ class SuezSensor(SensorEntity):
self.client = client
self._attr_extra_state_attributes = {}
def _fetch_data(self):
def _fetch_data(self) -> None:
"""Fetch latest data from Suez."""
try:
self.client.update()

View File

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