mirror of
https://github.com/esphome/esphome.git
synced 2025-09-11 15:52:20 +01:00
fix: include light_output header in dynamic_lamp.h and clean up unused includes
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
#include "esphome/components/output/float_output.h"
|
#include "esphome/components/output/float_output.h"
|
||||||
|
#include "esphome/components/light/light_output.h"
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace dynamic_lamp {
|
namespace dynamic_lamp {
|
||||||
|
@@ -1,12 +1,8 @@
|
|||||||
#include "dynamic_lamp_output.h"
|
#include "dynamic_lamp_output.h"
|
||||||
#include "esphome/core/helpers.h"
|
|
||||||
#include "esphome/core/log.h"
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace dynamic_lamp {
|
namespace dynamic_lamp {
|
||||||
|
|
||||||
static const char *const TAG = "dynamic_lamp.output";
|
|
||||||
|
|
||||||
void DynamicLamp::write_state(light::LightState *state) override {
|
void DynamicLamp::write_state(light::LightState *state) override {
|
||||||
float bright;
|
float bright;
|
||||||
state->current_values_as_brightness(&bright);
|
state->current_values_as_brightness(&bright);
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../dynamic_lamp.h"
|
#include "../dynamic_lamp.h"
|
||||||
#include "esphome/components/light/light_output.h"
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace dynamic_lamp {
|
namespace dynamic_lamp {
|
||||||
|
Reference in New Issue
Block a user