1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 15:26:01 +00:00

Adding ADE7953 irq_pin (#1359)

This commit is contained in:
Marcos Pérez Ferro
2020-11-15 21:30:14 +01:00
committed by GitHub
parent 5a2b14cfa4
commit 7e40d4246c
4 changed files with 24 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ static const char *TAG = "ade7953";
void ADE7953::dump_config() {
ESP_LOGCONFIG(TAG, "ADE7953:");
if (this->has_irq_) {
ESP_LOGCONFIG(TAG, " IRQ Pin: GPIO%u", this->irq_pin_number_);
}
LOG_I2C_DEVICE(this);
LOG_UPDATE_INTERVAL(this);
LOG_SENSOR(" ", "Voltage Sensor", this->voltage_sensor_);