mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
Make light.addressable_set color parameters behave as documented & consistent with elsewhere (#2009)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user