6static const char *
const TAG =
"mk2pvrouter_sensor";
12 if (!result.has_value()) {
13 ESP_LOGW(TAG,
"Failed to parse value '%s' for tag '%s'",
val, this->
get_tag());
20 LOG_SENSOR(
" ",
"Mk2PVRouter Sensor",
this);
21 ESP_LOGCONFIG(TAG,
" Tag: %s", this->
get_tag());
const char * get_tag() const
void publish_val(const char *val) override
void dump_config() override
Mk2PVRouterSensor(const char *tag)
void publish_state(float state)
Publish a new state to the front-end.
optional< T > parse_number(const char *str)
Parse an unsigned decimal number from a null-terminated string.