mirror of
https://github.com/esphome/esphome.git
synced 2025-11-10 20:05:48 +00:00
Create xiaomi_miscale.cpp
This commit is contained in:
19
esphome/components/xiaomi_miscale/xiaomi_miscale.cpp
Normal file
19
esphome/components/xiaomi_miscale/xiaomi_miscale.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "xiaomi_miscale.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
|
||||
namespace esphome {
|
||||
namespace xiaomi_miscale {
|
||||
|
||||
static const char *TAG = "xiaomi_miscale";
|
||||
|
||||
void XiaomiMiscale::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Xiaomi Mijia");
|
||||
LOG_SENSOR(" ", "Measured Weight", this->weight_);
|
||||
}
|
||||
|
||||
} // namespace xiaomi_miscale
|
||||
} // namespace esphome
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user