Make light.addressable_set color parameters behave as documented & consistent with elsewhere (#2009)

This commit is contained in:
Oxan van Leeuwen
2021-07-28 19:49:43 +02:00
committed by GitHub
parent 618cfd9ec5
commit 1652914d39
8 changed files with 61 additions and 38 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "automation.h"
#include "esphome/core/log.h"
namespace esphome {
namespace light {
static const char *const TAG = "light.automation";
void addressableset_warn_about_scale(const char *field) {
ESP_LOGW(TAG, "Lambda for parameter %s of light.addressable_set should return values in range 0-1 instead of 0-255.",
field);
}
} // namespace light
} // namespace esphome