I was building a simple house-mode selector: input_select, three options, Heat / Cool / Off. Reloaded the config. Opened the dropdown.
Heat. Cool. That's it.
No third option. No error in Settings → Logs. Not even a warning. The config had loaded clean, as far as Home Assistant was concerned, and just quietly handed back a list one item short of what I wrote.
I spent longer than I want to admit assuming it was the frontend caching an old version, or a stray duplicate key somewhere higher up the file eating the line. It was neither. The YAML itself was lying to me.
The word "Off" isn't a string. Not to your parser.
Home Assistant's config loader uses a YAML 1.1-compatible parser (the same family as PyYAML's SafeLoader). YAML 1.1 has a list of bareword tokens that get parsed as booleans, case-insensitively, whether or not that's what you meant: yes/no, true/false, on/off, even y/n.
Write Off with no quotes anywhere a parser expects a plain scalar, and you don't get the string "Off". You get the Python boolean False.
You can watch this happen in about ten seconds, no Home Assistant required:
python3 -c "import yaml; print(yaml.safe_load('options: [Heat, Cool, Off]'))"
# {'options': ['Heat', 'Cool', False]}
That's it. That's the whole bug. Two of your three list items are strings. The third is a boolean that happens to print as False and behaves like neither the word "Off" nor anything you'd want in a dropdown.
What happens next depends entirely on whatever schema is reading that key. In my case, the option just never made it into the UI. No crash, no complaint, just two choices where I'd written three. A stricter schema elsewhere might throw a type error instead. Either way, you don't get what you typed, and the YAML file itself gives you no visual hint that anything is wrong.
This isn't a Home Assistant bug. It's older than Home Assistant.
This is widely known as the "Norway problem," because the country code NO parses as boolean False under the same rule, and it has broken real config files across the YAML ecosystem for years. It's not something Home Assistant introduced, and quoting around it isn't a workaround for a bug, it's just how you tell YAML 1.1 "I mean the string."
YAML 1.2 fixed this by narrowing the boolean literals to just true/false, but plenty of real-world parsers, including the ones most of us are running underneath Home Assistant, still implement the older, wider 1.1 rule. Assume the old behavior until you've specifically checked otherwise.
Under a YAML 1.1 loader, all of these parse as booleans when left unquoted, in any case variant: y / Y / n / N, yes / Yes / YES, no / No / NO, true / True / TRUE, false / False / FALSE, on / On / ON, off / Off / OFF.
If any of these could ever be a plain value a human typed (a dropdown option, a device state label, a list a person filled in by hand), quote it.
Fix it, then go find the others
The fix for the one I found was one character:
input_select:
house_hvac_mode:
name: House Mode
options:
- Heat
- Cool
- "Off"
But a single fixed instance doesn't tell you whether it's the only one. Since this class of bug produces no error, grepping for it is the only reliable way to find the others sitting quietly in your config. Two patterns cover most real cases: a bareword sitting alone as a list item, and one sitting inline inside a flow-style list:
# Bareword as its own list item (the "- Off" form)
grep -rnE '^\s*-\s*(Off|On|Yes|No|True|False|Y|N)\s*$' .
# Bareword inside an inline [a, b, c] list, unquoted
grep -rnE ':\s*\[[^]"'"'"']*\b(Off|On|Yes|No)\b[^]"'"'"']*\]' .
Neither pattern is perfect (they'll give you false positives on genuinely-meant booleans and miss more exotic YAML structures), but as a first pass across a whole config directory, it finds the kind of landmine that cost me an afternoon in about two seconds.
The rule going forward
If a YAML value is a word a human could also read as a toggle state, such as on, off, yes, or no, and their case variants, quote it. Every time. Your parser doesn't know you meant a label. It only knows the YAML 1.1 spec, and the spec says Off is a boolean unless you tell it otherwise.