Use single quotes ( ' ) for strings inside of a template. It is more obvious to escape a single quote when necessary (i.e. name is a possessive noun), because the single quotes that wrap the string are closer in position to the apostrophe inside the string. Use double quotes ( " ) outside of a template (unless it is a multi-line template, in which case outside quotes are not required).
yes, you are correct, and that’s what I do but only when truly necessary. I’ve ditched almost all my double quotes, (only left some in mqtt settings, where they are needed.) because i simply visually don’t like them, and love the sight of an unquoted template. Using the multiline > makes that possible.
I only responded to your remarks because I believed you said you can’t use it the other way round. Nevermind please, I didn’t want to better you in any way. Sorry if I was a bore…or worse.
Not at all. I was actually under the mistaken impression that double quotes inside single quotes wouldn’t actually work. I’m glad you pointed out this was wrong. I’m still very much learning my way around the finer points of HA.