mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Introduce hex parsing & formatting helper functions (#2882)
This commit is contained in:
@@ -10,7 +10,7 @@ static const char *const TAG = "xiaomi_cgd1";
|
||||
|
||||
void XiaomiCGD1::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Xiaomi CGD1");
|
||||
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