Simplified co2

This commit is contained in:
Maximilian Giller 2024-08-10 02:44:33 +02:00
parent d1bb240080
commit 3f083c0aed

View file

@ -13,11 +13,4 @@ class Mhz19Co2:
return self.last_read
def read(self) -> int | None:
data = mh_z19.read()
logging.debug(data["co2"])
if not data:
return None
self.last_read = data["co2"]
return self.last_read
return mh_z19.read()["co2"]