mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 01:19:29 +00:00
Improve entity type hints [d] (#77031)
This commit is contained in:
@@ -157,7 +157,7 @@ class DiscogsSensor(SensorEntity):
|
||||
|
||||
return None
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Set state to the amount of records in user's collection."""
|
||||
if self.entity_description.key == SENSOR_COLLECTION_TYPE:
|
||||
self._attr_native_value = self._discogs_data["collection_count"]
|
||||
|
||||
Reference in New Issue
Block a user