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:
@@ -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
|
||||
|
Reference in New Issue
Block a user