Skip to content

Commit

Permalink
update "Can't convert" warning to match others in homeassistant_sensor (
Browse files Browse the repository at this point in the history
  • Loading branch information
PlainTechEnthusiast committed Jul 30, 2023
1 parent ccb3d3d commit 9aa5ee3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9aa5ee3

Please sign in to comment.