Improve entity type hints [c] (#77023)

This commit is contained in:
epenet
2022-08-19 13:02:46 +02:00
committed by GitHub
parent 80c1c11b1a
commit 0f792eb92e
15 changed files with 63 additions and 57 deletions

View File

@@ -99,7 +99,7 @@ class CurrencylayerSensor(SensorEntity):
"""Return the state attributes of the sensor."""
return {ATTR_ATTRIBUTION: ATTRIBUTION}
def update(self):
def update(self) -> None:
"""Update current date."""
self.rest.update()
if (value := self.rest.data) is not None: