Skip to content

Commit 6b90e43

Browse files
committed
Update devices.py
Some more mypy stuff
1 parent 5696f8b commit 6b90e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhilo/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _map_readings_to_devices(
5555
"""Uses the dict from parse_values_received to map the values to devices."""
5656
updated_devices = []
5757
for reading in readings:
58-
device_identifier = reading.device_id
58+
device_identifier: Union[int, str] = reading.device_id
5959
if device_identifier == 0:
6060
device_identifier = reading.hilo_id
6161
if device := self.find_device(device_identifier):

0 commit comments

Comments
 (0)