mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 22:14:54 +01:00
Enable addressable light power supply based on raw values (#2690)
This commit is contained in:
parent
7552893311
commit
b4cd8d21a5
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class AddressableLight : public LightOutput, public Component {
|
|||
void mark_shown_() {
|
||||
#ifdef USE_POWER_SUPPLY
|
||||
for (const auto &c : *this) {
|
||||
if (c.get().is_on()) {
|
||||
if (c.get_red_raw() > 0 || c.get_green_raw() > 0 || c.get_blue_raw() > 0 || c.get_white_raw() > 0) {
|
||||
this->power_.request();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue