atc mithermometer: Add possibility to report signal strength (#3000)

This commit is contained in:
mknjc
2022-01-05 04:43:37 +01:00
committed by GitHub
parent ed5930e934
commit 3067e482fc
4 changed files with 18 additions and 0 deletions
@@ -45,6 +45,8 @@ bool ATCMiThermometer::parse_device(const esp32_ble_tracker::ESPBTDevice &device
this->battery_voltage_->publish_state(*res->battery_voltage);
success = true;
}
if (this->signal_strength_ != nullptr)
this->signal_strength_->publish_state(device.get_rssi());
return success;
}