Skip to content

Commit f1f8baa

Browse files
committed
Update devices.py
More typing, yay!
1 parent 6b90e43 commit f1f8baa

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
@@ -69,7 +69,7 @@ def _map_readings_to_devices(
6969
)
7070
return updated_devices
7171

72-
def find_device(self, device_identifier: int | str) -> HiloDevice:
72+
def find_device(self, device_identifier: int | str) -> HiloDevice | None:
7373
"""Makes sure the devices received have an identifier, this means some need to be hardcoded
7474
like the unknown power meter.
7575
"""

0 commit comments

Comments
 (0)