From 5c359856ff3159341f8602f5cd7188b07a7f6524 Mon Sep 17 00:00:00 2001 From: Anthony Uk <1492471+dataway@users.noreply.github.com> Date: Tue, 6 Apr 2021 13:50:31 +0200 Subject: [PATCH] Fixed CustomComponentConstructor::get_component() (#1653) Co-authored-by: Guillermo Ruffino --- esphome/components/custom_component/custom_component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/custom_component/custom_component.h b/esphome/components/custom_component/custom_component.h index 6b009ba549..3f5760e4cf 100644 --- a/esphome/components/custom_component/custom_component.h +++ b/esphome/components/custom_component/custom_component.h @@ -16,7 +16,7 @@ class CustomComponentConstructor { } } - Component *get_component(int i) { return this->components_[i]; } + Component *get_component(int i) const { return this->components_[i]; } protected: std::vector components_;