mirror of
https://github.com/esphome/esphome.git
synced 2024-12-19 16:07:47 +01:00
Move gas mbus config option being a define to being a build flag since its used in external libraries. (#3575)
This commit is contained in:
parent
d045908e05
commit
57f5884070
@ -79,7 +79,7 @@ async def to_code(config):
|
|||||||
cg.add(var.set_request_interval(config[CONF_REQUEST_INTERVAL].total_milliseconds))
|
cg.add(var.set_request_interval(config[CONF_REQUEST_INTERVAL].total_milliseconds))
|
||||||
cg.add(var.set_receive_timeout(config[CONF_RECEIVE_TIMEOUT].total_milliseconds))
|
cg.add(var.set_receive_timeout(config[CONF_RECEIVE_TIMEOUT].total_milliseconds))
|
||||||
|
|
||||||
cg.add_define("DSMR_GAS_MBUS_ID", config[CONF_GAS_MBUS_ID])
|
cg.add_build_flag("-DDSMR_GAS_MBUS_ID=" + str(config[CONF_GAS_MBUS_ID]))
|
||||||
|
|
||||||
# DSMR Parser
|
# DSMR Parser
|
||||||
cg.add_library("glmnet/Dsmr", "0.5")
|
cg.add_library("glmnet/Dsmr", "0.5")
|
||||||
|
Loading…
Reference in New Issue
Block a user