Enable ruff check for ANN (#1139)

This commit is contained in:
Teemu R.
2024-11-10 19:55:13 +01:00
committed by GitHub
parent 6b44fe6242
commit 66eb17057e
89 changed files with 596 additions and 452 deletions

View File

@@ -49,7 +49,7 @@ class SmartChildDevice(SmartDevice):
self._update_internal_state(info)
self._components = component_info
async def update(self, update_children: bool = True):
async def update(self, update_children: bool = True) -> None:
"""Update child module info.
The parent updates our internal info so just update modules with
@@ -57,7 +57,7 @@ class SmartChildDevice(SmartDevice):
"""
await self._update(update_children)
async def _update(self, update_children: bool = True):
async def _update(self, update_children: bool = True) -> None:
"""Update child module info.
Internal implementation to allow patching of public update in the cli
@@ -118,5 +118,5 @@ class SmartChildDevice(SmartDevice):
dev_type = DeviceType.Unknown
return dev_type
def __repr__(self):
def __repr__(self) -> str:
return f"<{self.device_type} {self.alias} ({self.model}) of {self._parent}>"