Update funtion def read_and_publish_cwt_co2 to only read CO2 value

This commit is contained in:
2025-06-30 09:38:16 +00:00
parent fc370fe9c6
commit 0eeea7390e

View File

@ -143,8 +143,6 @@ def read_and_publish_cwt_co2(mqtt_client, modbus_client, host_info):
topics_data = [
(f"{base_topic}/Time", current_time),
(f"{base_topic}/Status", "online"),
(f"{base_topic}/Temperature/temperature", round(temperature, 1)),
(f"{base_topic}/Humidity/humidity", round(humidity, 1)),
(f"{base_topic}/CO2/CO2", co2_ppm),
]