Improve entity type hints [s] (part 1/2) (#77881)

This commit is contained in:
epenet 2022-09-06 13:35:14 +02:00 committed by GitHub
parent 34da463df0
commit 0c767bd0d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 86 additions and 70 deletions

View file

@ -91,7 +91,7 @@ class SmappeePresence(BinarySensorEntity):
sw_version=self._service_location.firmware_version,
)
async def async_update(self):
async def async_update(self) -> None:
"""Get the latest data from Smappee and update the state."""
await self._smappee_base.async_update()
@ -174,7 +174,7 @@ class SmappeeAppliance(BinarySensorEntity):
sw_version=self._service_location.firmware_version,
)
async def async_update(self):
async def async_update(self) -> None:
"""Get the latest data from Smappee and update the state."""
await self._smappee_base.async_update()