mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Fix numbering of sensors (#6305)
This commit is contained in:
parent
4a9d7771fe
commit
cf7cc179fb
2 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ class IPAddressEthernetInfo : public PollingComponent, public text_sensor::TextS
|
||||||
if (ip.is_set()) {
|
if (ip.is_set()) {
|
||||||
if (this->ip_sensors_[sensor] != nullptr) {
|
if (this->ip_sensors_[sensor] != nullptr) {
|
||||||
this->ip_sensors_[sensor]->publish_state(ip.str());
|
this->ip_sensors_[sensor]->publish_state(ip.str());
|
||||||
sensor++;
|
|
||||||
}
|
}
|
||||||
|
sensor++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ class IPAddressWiFiInfo : public PollingComponent, public text_sensor::TextSenso
|
||||||
if (ip.is_set()) {
|
if (ip.is_set()) {
|
||||||
if (this->ip_sensors_[sensor] != nullptr) {
|
if (this->ip_sensors_[sensor] != nullptr) {
|
||||||
this->ip_sensors_[sensor]->publish_state(ip.str());
|
this->ip_sensors_[sensor]->publish_state(ip.str());
|
||||||
sensor++;
|
|
||||||
}
|
}
|
||||||
|
sensor++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue