From 03950f270a92f4d7ceb608512156ff0c87f2329d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 25 Apr 2025 15:12:55 -1000 Subject: [PATCH] Remove lower call in async_reserve (#143682) async_reserve is only called from the the entity_platform helper which already ensures the entity_id is validated and in lower case. https://github.com/home-assistant/core/blob/a783b6a0abda02b26e193356c4f3db8b86e13b86/homeassistant/helpers/entity_platform.py#L936 --- homeassistant/core.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 65f3b7502a5..9c5d32934a8 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -2234,7 +2234,6 @@ class StateMachine: This avoids a race condition where multiple entities with the same entity_id are added. """ - entity_id = entity_id.lower() if entity_id in self._states_data or entity_id in self._reservations: raise HomeAssistantError( "async_reserve must not be called once the state is in the state"