Simplified co2
This commit is contained in:
parent
d1bb240080
commit
3f083c0aed
1 changed files with 1 additions and 8 deletions
|
@ -13,11 +13,4 @@ class Mhz19Co2:
|
||||||
return self.last_read
|
return self.last_read
|
||||||
|
|
||||||
def read(self) -> int | None:
|
def read(self) -> int | None:
|
||||||
data = mh_z19.read()
|
return mh_z19.read()["co2"]
|
||||||
logging.debug(data["co2"])
|
|
||||||
|
|
||||||
if not data:
|
|
||||||
return None
|
|
||||||
|
|
||||||
self.last_read = data["co2"]
|
|
||||||
return self.last_read
|
|
||||||
|
|
Loading…
Reference in a new issue