mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Improve type hint in brottsplatskartan sensor entity (#77015)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user