We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5696f8b commit 6b90e43Copy full SHA for 6b90e43
pyhilo/devices.py
@@ -55,7 +55,7 @@ def _map_readings_to_devices(
55
"""Uses the dict from parse_values_received to map the values to devices."""
56
updated_devices = []
57
for reading in readings:
58
- device_identifier = reading.device_id
+ device_identifier: Union[int, str] = reading.device_id
59
if device_identifier == 0:
60
device_identifier = reading.hilo_id
61
if device := self.find_device(device_identifier):
0 commit comments