Improve entity type hints [d] (#77031)

This commit is contained in:
epenet
2022-08-19 16:10:45 +02:00
committed by GitHub
parent 2d197fd59e
commit bf7239c25d
31 changed files with 141 additions and 119 deletions

View File

@@ -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"]