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 0d60fea commit ef9d95dCopy full SHA for ef9d95d
src/w1thermsensor/async_core.py
@@ -62,7 +62,9 @@ async def get_raw_sensor_strings(self) -> List[str]: # type: ignore
62
)
63
64
if (
65
- data[0].strip()[-3:] != "YES" or "00 00 00 00 00 00 00 00 00" in data[0]
+ len(data) < 1
66
+ or data[0].strip()[-3:] != "YES"
67
+ or "00 00 00 00 00 00 00 00 00" in data[0]
68
): # pragma: no cover
69
raise SensorNotReadyError(self)
70
0 commit comments