Improve type hint in brottsplatskartan sensor entity (#77015)
This commit is contained in:
parent
4de50fc471
commit
d70bc68b93
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue