Skip to content

Commit

Permalink
Add comment to mqtt sensor last_reset_value_template that `state_clas…
Browse files Browse the repository at this point in the history
…s` option must be `total` (home-assistant#31844)
  • Loading branch information
jbouwh authored Mar 12, 2024
1 parent 0066706 commit a5a0b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/_integrations/sensor.mqtt.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ json_attributes_topic:
required: false
type: string
last_reset_value_template:
description: "Defines a [template](/docs/configuration/templating/#using-templates-with-the-mqtt-integration) to extract the last_reset. Available variables: `entity_id`. The `entity_id` can be used to reference the entity's attributes."
description: "Defines a [template](/docs/configuration/templating/#using-templates-with-the-mqtt-integration) to extract the last_reset. When `last_reset_value_template` is set, the `state_class` option must be `total`. Available variables: `entity_id`. The `entity_id` can be used to reference the entity's attributes."
required: false
type: template
name:
Expand Down

0 comments on commit a5a0b23

Please sign in to comment.