From e15071228e42a6d79d470d223809e090ea78b3f3 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 17 Oct 2019 16:53:55 +0200 Subject: [PATCH] Fix addressable light fade to black function (#752) Fixes https://github.com/esphome/issues/issues/517 --- esphome/components/light/addressable_light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/light/addressable_light.cpp b/esphome/components/light/addressable_light.cpp index 68a303f23d..6b1fa36bc1 100644 --- a/esphome/components/light/addressable_light.cpp +++ b/esphome/components/light/addressable_light.cpp @@ -113,7 +113,7 @@ void ESPRangeView::fade_to_white(uint8_t amnt) { } void ESPRangeView::fade_to_black(uint8_t amnt) { for (auto c : *this) - c.fade_to_white(amnt); + c.fade_to_black(amnt); } void ESPRangeView::lighten(uint8_t delta) { for (auto c : *this)