From 7b402961bc8da0f25dc2a3024217d920ec05aece Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 7 Aug 2022 18:37:52 -0400 Subject: [PATCH] switch from custom short int parser to builtin --- adafruit_ble_lywsd03mmc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/adafruit_ble_lywsd03mmc.py b/adafruit_ble_lywsd03mmc.py index ccf7c15..0c9e7e0 100644 --- a/adafruit_ble_lywsd03mmc.py +++ b/adafruit_ble_lywsd03mmc.py @@ -75,11 +75,7 @@ def temperature_humidity(self) -> Optional[Tuple[float, int]]: data = self._readings_buf length = self.readings.readinto(data) if length > 0: - low_temp, high_temp, hum = struct.unpack_from("