Uh, one know-it-all. But have you really thought through what you’re saying? Or did you just didn’t know it better…
Let’s see, maybe we can find some slow little examples, why you unwillingly proved my point for code formatting. Thanks btw.
I’ll take the example from above, should be easier for you to understand. If it’s still to fast, just say it, we’ll find a good example for you, too. If not, we’ll get some cookies for you. Just for you!
So this is, how unformatted code looks like:
“show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.wiser_cancel_all_heating_overrides
name: ’ Cancel All Overrides’”
This is, how formatted code looks like:
show_name: true
show_icon: true
type: custom:button-card
tap_action:
action: toggle
entity: button.wiser_cancel_all_heating_overrides
name: ’ Cancel All Overrides’
but it could be just this, as whitespaces are deleted without proper formatting
show_name: true
show_icon: true
type: custom:button-card
tap_action:
action: toggle
entity: button.wiser_cancel_all_heating_overrides
name: ’ Cancel All Overrides’
Can YOU spot the difference? Hint, it’s the entity and it’s indentation. Can mean totally different things. I know, hard to understand for you, that this could matter in a yaml file, but believe it or not, it does.
Oh, and not to forget, the piece of code you posted, is not for the custom:button-card
we’re talking about in this thread (and @awallace89
asked for twice), it’s for the HA default button-card. But hey, good choice, running around and telling people what their intentions are!