1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 07:42:26 +01:00

fix: include light_output header in dynamic_lamp.h and clean up unused includes

This commit is contained in:
Oliver Kleinecke
2025-02-15 20:11:54 +01:00
parent acfafff162
commit 41a0749060
3 changed files with 1 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
#include "esphome/core/component.h"
#include "esphome/components/output/float_output.h"
#include "esphome/components/light/light_output.h"
namespace esphome {
namespace dynamic_lamp {

View File

@@ -1,12 +1,8 @@
#include "dynamic_lamp_output.h"
#include "esphome/core/helpers.h"
#include "esphome/core/log.h"
namespace esphome {
namespace dynamic_lamp {
static const char *const TAG = "dynamic_lamp.output";
void DynamicLamp::write_state(light::LightState *state) override {
float bright;
state->current_values_as_brightness(&bright);

View File

@@ -1,7 +1,6 @@
#pragma once
#include "../dynamic_lamp.h"
#include "esphome/components/light/light_output.h"
namespace esphome {
namespace dynamic_lamp {