Initialize select _attr_current_option with None (#145026)

This commit is contained in:
Sid 2025-05-16 10:27:59 +02:00 committed by GitHub
parent 71108d9ca0
commit 6dff975711
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,7 @@ class SelectEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
_entity_component_unrecorded_attributes = frozenset({ATTR_OPTIONS}) _entity_component_unrecorded_attributes = frozenset({ATTR_OPTIONS})
entity_description: SelectEntityDescription entity_description: SelectEntityDescription
_attr_current_option: str | None _attr_current_option: str | None = None
_attr_options: list[str] _attr_options: list[str]
_attr_state: None = None _attr_state: None = None