Add doc about deleting binary sensor via HTTP API (#33281)

This commit is contained in:
Artem Zinnatullin 2024-06-15 12:29:58 +03:00 committed by GitHub
parent 6fc2337277
commit 51bb07895b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,6 +215,13 @@ $ curl -X GET -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \
} }
``` ```
To delete the sensor, send DELETE request with curl
```bash
$ curl -X DELETE -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \
http://localhost:8123/api/states/binary_sensor.radio
```
### Examples ### Examples
In this section you'll find some real-life examples of how to use this sensor, besides `curl`, which was shown earlier. In this section you'll find some real-life examples of how to use this sensor, besides `curl`, which was shown earlier.