mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 15:34:53 +01:00
update "Can't convert" warning to match others in homeassistant_sensor (#5162)
This commit is contained in:
parent
ccb3d3d308
commit
9aa5ee3372
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ void HomeassistantSensor::setup() {
|
|||
this->entity_id_, this->attribute_, [this](const std::string &state) {
|
||||
auto val = parse_number<float>(state);
|
||||
if (!val.has_value()) {
|
||||
ESP_LOGW(TAG, "Can't convert '%s' to number!", state.c_str());
|
||||
ESP_LOGW(TAG, "'%s': Can't convert '%s' to number!", this->entity_id_.c_str(), state.c_str());
|
||||
this->publish_state(NAN);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue