mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
fix text sensor bad pointer
This commit is contained in:
parent
6cbd2af6b4
commit
def2be4b83
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ void ModemTextSensor::update_network_type_text_sensor_() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModemTextSensor::update_signal_strength_text_sensor_() {
|
void ModemTextSensor::update_signal_strength_text_sensor_() {
|
||||||
if (modem::global_modem_component->modem_ready() && this->network_type_text_sensor_) {
|
if (modem::global_modem_component->modem_ready() && this->signal_strength_text_sensor_) {
|
||||||
float rssi, ber;
|
float rssi, ber;
|
||||||
if (modem::global_modem_component->get_signal_quality(rssi, ber)) {
|
if (modem::global_modem_component->get_signal_quality(rssi, ber)) {
|
||||||
std::string bars = get_signal_bars(rssi, false);
|
std::string bars = get_signal_bars(rssi, false);
|
||||||
|
|
|
@ -24,7 +24,7 @@ class ModemTextSensor : public PollingComponent {
|
||||||
// ========== INTERNAL METHODS ==========
|
// ========== INTERNAL METHODS ==========
|
||||||
// (In most use cases you won't need these)
|
// (In most use cases you won't need these)
|
||||||
|
|
||||||
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
|
float get_setup_priority() const override { return setup_priority::AFTER_CONNECTION; }
|
||||||
void setup() override;
|
void setup() override;
|
||||||
void update() override;
|
void update() override;
|
||||||
void dump_config() override {}
|
void dump_config() override {}
|
||||||
|
|
Loading…
Reference in a new issue