mirror of
https://github.com/esphome/esphome.git
synced 2025-02-01 02:31:00 +00:00
65d08beaa4
* add xiaomi BLE Thermometer lywsd02 model support * remove battery level * Update sensor.py to pass the lint test https://github.com/esphome/esphome/pull/664 * fix trailing space Co-authored-by: Guoxue <gx@m15.cn> Co-authored-by: mr G1K <mr@g1k.ru>
21 lines
424 B
C++
21 lines
424 B
C++
#include "xiaomi_lywsd02.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
namespace esphome {
|
|
namespace xiaomi_lywsd02 {
|
|
|
|
static const char *TAG = "xiaomi_lywsd02";
|
|
|
|
void XiaomiLYWSD02::dump_config() {
|
|
ESP_LOGCONFIG(TAG, "Xiaomi LYWSD02");
|
|
LOG_SENSOR(" ", "Temperature", this->temperature_);
|
|
LOG_SENSOR(" ", "Humidity", this->humidity_);
|
|
}
|
|
|
|
} // namespace xiaomi_lywsd02
|
|
} // namespace esphome
|
|
|
|
#endif
|