mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
[xiaomi_xmwsdj04mmc] Combine log statements to reduce loop blocking (#12936)
This commit is contained in:
@@ -13,8 +13,10 @@ static constexpr size_t XMWSDJ04MMC_BINDKEY_SIZE = 16;
|
||||
|
||||
void XiaomiXMWSDJ04MMC::dump_config() {
|
||||
char bindkey_hex[format_hex_pretty_size(XMWSDJ04MMC_BINDKEY_SIZE)];
|
||||
ESP_LOGCONFIG(TAG, "Xiaomi XMWSDJ04MMC");
|
||||
ESP_LOGCONFIG(TAG, " Bindkey: %s", format_hex_pretty_to(bindkey_hex, this->bindkey_, XMWSDJ04MMC_BINDKEY_SIZE, '.'));
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"Xiaomi XMWSDJ04MMC\n"
|
||||
" Bindkey: %s",
|
||||
format_hex_pretty_to(bindkey_hex, this->bindkey_, XMWSDJ04MMC_BINDKEY_SIZE, '.'));
|
||||
LOG_SENSOR(" ", "Temperature", this->temperature_);
|
||||
LOG_SENSOR(" ", "Humidity", this->humidity_);
|
||||
LOG_SENSOR(" ", "Battery Level", this->battery_level_);
|
||||
|
||||
Reference in New Issue
Block a user