From 31581bedef3b21434224042feb3349b4a77b62aa Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 11 Aug 2025 23:41:35 +0200 Subject: [PATCH] Fix program key --- homeassistant/components/home_connect/coordinator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/home_connect/coordinator.py b/homeassistant/components/home_connect/coordinator.py index 866392aa797..c818de63f5f 100644 --- a/homeassistant/components/home_connect/coordinator.py +++ b/homeassistant/components/home_connect/coordinator.py @@ -253,14 +253,12 @@ class HomeConnectCoordinator( EventKey.BSH_COMMON_ROOT_ACTIVE_PROGRAM, EventKey.BSH_COMMON_ROOT_SELECTED_PROGRAM, ): - program_key = ProgramKey( - ProgramKey(cast(str, event.value)), - ) + program_key = ProgramKey(cast(str, event.value)) # If the active program is unknown, options must be updated using the selected program. if ( event_key - == EventKey.BSH_COMMON_ROOT_ACTIVE_PROGRAM - and event.value == ProgramKey.UNKNOWN + is EventKey.BSH_COMMON_ROOT_ACTIVE_PROGRAM + and event.value is ProgramKey.UNKNOWN ): select_program_event = events.get( EventKey.BSH_COMMON_ROOT_SELECTED_PROGRAM