sensor: require the 'state_response_template'

The sensor configuration isn't useful unless the user configures a
template that calls "set_result" to update fields for the desired
template.  Remove the default payload template and require
that it be configured.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan
2024-02-24 06:05:07 -05:00
parent 90e13c07f7
commit 0850c16b00
2 changed files with 2 additions and 2 deletions

View File

@@ -2837,7 +2837,7 @@ state_response_template:
#
# The above example assumes a json response with multiple fields in a struct
# is received. Individual measurements are extracted from that struct, coerced
# to a numeric format and passed to Moonraker. The default is the payload.
# to a numeric format and passed to Moonraker. This parameter must be provided.
```
!!! Note