From 0f837256c1501efcd9ad17991594bfbab84c571f Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Sun, 9 Feb 2025 19:39:33 +0100 Subject: [PATCH 1/3] Update __init__.py --- esphome/components/mcp4461/output/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/mcp4461/output/__init__.py b/esphome/components/mcp4461/output/__init__.py index 49ff806f0f..2ab7ffac1b 100644 --- a/esphome/components/mcp4461/output/__init__.py +++ b/esphome/components/mcp4461/output/__init__.py @@ -47,11 +47,11 @@ async def to_code(config): config[CONF_CHANNEL], ) if not config[CONF_TERMINAL_A]: - cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], 'a')) + cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], "a")) if not config[CONF_TERMINAL_B]: - cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], 'b')) + cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], "b")) if not config[CONF_TERMINAL_W]: - cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], 'w')) + cg.add(parent.initialize_terminal_disabled(config[CONF_CHANNEL], "w")) if CONF_INITIAL_VALUE in config: cg.add( parent.set_initial_value(config[CONF_CHANNEL], config[CONF_INITIAL_VALUE]) From e747b0c349e52bc12357cda80e0fe70d80033c25 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Sun, 9 Feb 2025 19:54:07 +0100 Subject: [PATCH 2/3] Update mcp4461_output.h --- esphome/components/mcp4461/output/mcp4461_output.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mcp4461/output/mcp4461_output.h b/esphome/components/mcp4461/output/mcp4461_output.h index fe7560650d..06fd22e843 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.h +++ b/esphome/components/mcp4461/output/mcp4461_output.h @@ -25,7 +25,7 @@ class Mcp4461Wiper : public output::FloatOutput, public Parented initial_value_; }; From cafee0c5b3918cb093002f29b1e60b346eaa648b Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Sun, 9 Feb 2025 20:13:57 +0100 Subject: [PATCH 3/3] Update mcp4461.cpp --- esphome/components/mcp4461/mcp4461.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/mcp4461/mcp4461.cpp b/esphome/components/mcp4461/mcp4461.cpp index f75ed5a387..f7971a5fbe 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -368,7 +368,7 @@ bool Mcp4461Component::increase_wiper_(Mcp4461WiperIdx wiper) { return false; } if (this->reg_[wiper_idx].state == 256) { - ESP_LOGV(TAG, "%s", "Maximum wiper level reached, further increase of wiper %" PRIu8 " prohibited", wiper_idx); + ESP_LOGV(TAG, "Maximum wiper level reached, further increase of wiper %" PRIu8 " prohibited", wiper_idx); return false; } ESP_LOGV(TAG, "Increasing wiper %" PRIu8 "", wiper_idx); @@ -402,7 +402,7 @@ bool Mcp4461Component::decrease_wiper_(Mcp4461WiperIdx wiper) { return false; } if (this->reg_[wiper_idx].state == 0) { - ESP_LOGV(TAG, "%s", "Minimum wiper level reached, further decrease of wiper %" PRIu8 " prohibited", wiper_idx); + ESP_LOGV(TAG, "Minimum wiper level reached, further decrease of wiper %" PRIu8 " prohibited", wiper_idx); return false; } ESP_LOGV(TAG, "Decreasing wiper %" PRIu8 "", wiper_idx);