diff --git a/.strict-typing b/.strict-typing index 6180379f977..ee39824f476 100644 --- a/.strict-typing +++ b/.strict-typing @@ -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.* diff --git a/homeassistant/components/suez_water/sensor.py b/homeassistant/components/suez_water/sensor.py index fc5b804137d..7d7540ed1c0 100644 --- a/homeassistant/components/suez_water/sensor.py +++ b/homeassistant/components/suez_water/sensor.py @@ -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() diff --git a/mypy.ini b/mypy.ini index 2a3a5f0fb0f..6e67167daca 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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