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

@@ -59,7 +59,7 @@ class NbsLightOutput: public output::BinaryOutput, public Component{
}
void set_state_callback(light::LightState *callback){
if(callback == nullptr) ESP_LOGW(COMP_TAG, "Got Nullable callback");
if(callback == nullptr) ESP_LOGW(TAG, "Got Nullable callback");
this->callback = callback;
}
void set_emulator_component(HoermannMainComponent* component){
@@ -72,14 +72,14 @@ class NbsLightOutput: public output::BinaryOutput, public Component{
//ESP_LOGD("Test", "I have no idea");
lastState = mainComponent->getEmulator()->getState().lampOn;
if(lastState == true){
ESP_LOGD(COMP_TAG, "Light State ON");
ESP_LOGD(TAG, "Light State ON");
auto call = callback->make_call();
call.set_state(true);
call.perform();
}
else {
ESP_LOGD(COMP_TAG, "Light State OFF");
ESP_LOGD(TAG, "Light State OFF");
auto call = callback->make_call();
call.set_state(false);
call.perform();