mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
namespace esphome {
|
||||
namespace sx1509 {
|
||||
|
||||
static const char *TAG = "sx1509_float_channel";
|
||||
static const char *const TAG = "sx1509_float_channel";
|
||||
|
||||
void SX1509FloatOutputChannel::write_state(float state) {
|
||||
const uint16_t max_duty = 255;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
namespace esphome {
|
||||
namespace sx1509 {
|
||||
|
||||
static const char *TAG = "sx1509";
|
||||
static const char *const TAG = "sx1509";
|
||||
|
||||
void SX1509Component::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up SX1509Component...");
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
namespace esphome {
|
||||
namespace sx1509 {
|
||||
|
||||
static const char *TAG = "sx1509_gpio_pin";
|
||||
static const char *const TAG = "sx1509_gpio_pin";
|
||||
|
||||
void SX1509GPIOPin::setup() {
|
||||
ESP_LOGD(TAG, "setup pin %d", this->pin_);
|
||||
|
||||
Reference in New Issue
Block a user