mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 14:13:51 +00:00
Add OpenTherm component (part 3: rest of the sensors) (#7676)
Co-authored-by: FreeBear <freebear@tuxcnc.org> Co-authored-by: FreeBear-nc <67865163+FreeBear-nc@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -130,6 +130,8 @@ async def component_to_code(
|
||||
id = conf[CONF_ID]
|
||||
if id and id.type == type:
|
||||
entity = await create(conf, key, hub)
|
||||
if const.CONF_DATA_TYPE in conf:
|
||||
schemas[key].message_data = conf[const.CONF_DATA_TYPE]
|
||||
cg.add(getattr(hub, f"set_{key}_{component_type.lower()}")(entity))
|
||||
keys.append(key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user