Updated hoerman_door to esphome 2025.11.3...

Breaking changes existed in 2025.11.0
See https://github.com/esphome/esphome/pull/11704 for more information
This commit is contained in:
2025-12-04 01:47:24 +01:00
parent 1f7c437c3e
commit 4a0035d607
6 changed files with 40 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ class HoermannMainComponent;
namespace esphome {
namespace hoermann_door {
static const char *const COMP_TAG = "Hoermann";
static const char *const TAG = "Hoermann";
void dispatcherFn(void *arg);
@@ -100,11 +100,11 @@ class HoermannMainComponent: public Component{
}
void dump_config() override {
ESP_LOGCONFIG(COMP_TAG, "hoermann_door_component:");
ESP_LOGCONFIG(COMP_TAG, " UART: ");
ESP_LOGCONFIG(COMP_TAG, " UART is configured");
ESP_LOGCONFIG(TAG, "hoermann_door_component:");
ESP_LOGCONFIG(TAG, " UART: ");
ESP_LOGCONFIG(TAG, " UART is configured");
LOG_PIN(" TX_ON_PIN", this->_tx_on);
ESP_LOGCONFIG(COMP_TAG, " Log Level: %d", this->log_level);
ESP_LOGCONFIG(TAG, " Log Level: %d", this->log_level);
}
};
@@ -118,7 +118,7 @@ template<typename... Ts> class StopPollingAction: public Action<Ts...> {
public:
StopPollingAction(HoermannMainComponent *motor) : motor_(motor) {}
void play(Ts... x) override { this->motor_->stop_polling(); }
void play(const Ts &...x) override { this->motor_->stop_polling(); }
protected:
HoermannMainComponent *motor_;
@@ -127,7 +127,7 @@ template<typename... Ts> class StartPollingAction: public Action<Ts...> {
public:
StartPollingAction(HoermannMainComponent *motor) : motor_(motor) {}
void play(Ts... x) override { this->motor_->start_polling(); }
void play(const Ts &...x) override { this->motor_->start_polling(); }
protected:
HoermannMainComponent *motor_;