mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-31 02:08:26 +02:00
Dsmr updates (#2157)
* add option to use check_crc * ignore newline before ( in parsing * add gas delivered text for raw sensor * fix compile issue when not listing any sensor * make gas_mbus_id configurable * update dsmr lib for clang
This commit is contained in:
committed by
GitHub
parent
103ba4c696
commit
de33cbd7e7
@@ -244,4 +244,7 @@ async def to_code(config):
|
||||
cg.add(getattr(hub, f"set_{key}")(s))
|
||||
sensors.append(f"F({key})")
|
||||
|
||||
cg.add_define("DSMR_SENSOR_LIST(F, sep)", cg.RawExpression(" sep ".join(sensors)))
|
||||
if sensors:
|
||||
cg.add_define(
|
||||
"DSMR_SENSOR_LIST(F, sep)", cg.RawExpression(" sep ".join(sensors))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user