From 5c514b6b1944cc52f795fd759880a491cbdf3263 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 12 Dec 2023 14:44:17 +0100 Subject: [PATCH] Add Suez Water to strict typing (#105559) --- .strict-typing | 1 + homeassistant/components/suez_water/sensor.py | 2 +- mypy.ini | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) 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