mirror of https://github.com/home-assistant/core
Add Suez Water to strict typing (#105559)
This commit is contained in:
parent
2631fde0f7
commit
5c514b6b19
|
@ -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.*
|
||||
|
|
|
@ -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()
|
||||
|
|
10
mypy.ini
10
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
|
||||
|
|
Loading…
Reference in New Issue