7#include "esphome/core/log.h"
12static const char *
const TAG =
"home_io_control.favorite_button";
16 ESP_LOGW(
TAG,
"Ignoring favorite-position press because the parent hub is not configured");
20 if (this->
parent_->get_device(this->device_id_) ==
nullptr) {
21 ESP_LOGW(
TAG,
"Ignoring favorite-position press for %s because the device is not registered yet",
30 ESP_LOGCONFIG(
TAG,
"IO-Homecontrol Favorite Position Button");
31 ESP_LOGCONFIG(
TAG,
" Device ID: %s", this->
device_id_.c_str());
static constexpr uint8_t POS_FAVORITE
Move to favorite/"My" position.
static const char *const TAG