Improve type hint in brottsplatskartan sensor entity (#77015)

This commit is contained in:
epenet 2022-08-19 10:30:34 +02:00 committed by GitHub
parent 4de50fc471
commit d70bc68b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,10 +92,10 @@ class BrottsplatskartanSensor(SensorEntity):
self._brottsplatskartan = bpk
self._attr_name = name
def update(self):
def update(self) -> None:
"""Update device state."""
incident_counts = defaultdict(int)
incident_counts: defaultdict[str, int] = defaultdict(int)
incidents = self._brottsplatskartan.get_incidents()
if incidents is False: