Fix mqtt button entity full example (#20659)

This commit is contained in:
Thomas Dietrich 2021-12-13 21:07:14 +01:00 committed by GitHub
parent 1033f4a5d9
commit 6f7e4c3fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,11 +188,10 @@ button:
- platform: mqtt
unique_id: bedroom_switch_reboot_btn
name: "Restart Bedroom Switch"
state_topic: "home/bedroom/switch1"
command_topic: "home/bedroom/switch1/commands"
payload_press: "restart"
availability:
- topic: "home/bedroom/switch1/available"
payload_press: "restart"
qos: 0
retain: false
entity_category: "config"