From c7db36b503c84ecd752924751e2181f8a9ee5f06 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Fri, 14 Feb 2025 14:04:40 +0100 Subject: [PATCH] fix missing list include and wrong output_id type declaration --- esphome/components/dynamic_lamp/dynamic_lamp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/dynamic_lamp/dynamic_lamp.h b/esphome/components/dynamic_lamp/dynamic_lamp.h index 021d9669f8..1d251dada5 100644 --- a/esphome/components/dynamic_lamp/dynamic_lamp.h +++ b/esphome/components/dynamic_lamp/dynamic_lamp.h @@ -1,6 +1,7 @@ #pragma once #include "esphome/core/component.h" +#include namespace esphome { namespace dynamic_lamp { @@ -19,7 +20,7 @@ enum LinkedOutputModeIdx : uint8_t { struct LinkedOutput { bool active = false; - char* output_id = ""; + std::string output_id = ""; uint8_t mode = 0; optional min_value; optional max_value;