mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Improve entity type hints [c] (#77023)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user