The problem
When using templates, state object attributes return a dictionary where the keys are enums. This breaks existing templates that output to variables via automation variable sections, script variable sections, template entity attributes, and mqtt attributes. E.g.
variables:
my_attributes: "{{ states.weather.home.attributes }}"
now populates my_attributes with a string instead, where before it populated my_attributes with a dictionary. This is because the keys for attributes on some domains (light, weather) have been converted to enums in these PRs:
#174604
#174528
from this arch discussion home-assistant/architecture#1406 and this epic home-assistant/epics#104
What version of Home Assistant Core has the issue?
2026.7.0b0
What was the last working version of Home Assistant Core?
2026.6.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The problem
When using templates, state object attributes return a dictionary where the keys are enums. This breaks existing templates that output to variables via automation variable sections, script variable sections, template entity attributes, and mqtt attributes. E.g.
now populates
my_attributeswith a string instead, where before it populatedmy_attributeswith a dictionary. This is because the keys for attributes on some domains (light, weather) have been converted to enums in these PRs:#174604
#174528
from this arch discussion home-assistant/architecture#1406 and this epic home-assistant/epics#104
What version of Home Assistant Core has the issue?
2026.7.0b0
What was the last working version of Home Assistant Core?
2026.6.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response