mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Improve type hint in brottsplatskartan sensor entity (#77015)
This commit is contained in:
parent
4de50fc471
commit
d70bc68b93
@ -92,10 +92,10 @@ class BrottsplatskartanSensor(SensorEntity):
|
|||||||
self._brottsplatskartan = bpk
|
self._brottsplatskartan = bpk
|
||||||
self._attr_name = name
|
self._attr_name = name
|
||||||
|
|
||||||
def update(self):
|
def update(self) -> None:
|
||||||
"""Update device state."""
|
"""Update device state."""
|
||||||
|
|
||||||
incident_counts = defaultdict(int)
|
incident_counts: defaultdict[str, int] = defaultdict(int)
|
||||||
incidents = self._brottsplatskartan.get_incidents()
|
incidents = self._brottsplatskartan.get_incidents()
|
||||||
|
|
||||||
if incidents is False:
|
if incidents is False:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user