mirror of
https://github.com/esphome/esphome.git
synced 2025-10-04 11:02:19 +01:00
Introduce hex parsing & formatting helper functions (#2882)
This commit is contained in:
@@ -10,7 +10,7 @@ static const char *const TAG = "xiaomi_cgdk2";
|
||||
|
||||
void XiaomiCGDK2::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Xiaomi CGDK2");
|
||||
ESP_LOGCONFIG(TAG, " Bindkey: %s", hexencode(this->bindkey_, 16).c_str());
|
||||
ESP_LOGCONFIG(TAG, " Bindkey: %s", format_hex_pretty(this->bindkey_, 16).c_str());
|
||||
LOG_SENSOR(" ", "Temperature", this->temperature_);
|
||||
LOG_SENSOR(" ", "Humidity", this->humidity_);
|
||||
LOG_SENSOR(" ", "Battery Level", this->battery_level_);
|
||||
|
Reference in New Issue
Block a user