From bd02e279cf79976d4982ab74538cc37b37235de0 Mon Sep 17 00:00:00 2001 From: David Rapan Date: Sat, 22 Nov 2025 18:23:17 +0100 Subject: [PATCH] Refactor Shelly logbook name construction (#157026) --- homeassistant/components/shelly/logbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/shelly/logbook.py b/homeassistant/components/shelly/logbook.py index e10b5cb57cf0..309823a5eb25 100644 --- a/homeassistant/components/shelly/logbook.py +++ b/homeassistant/components/shelly/logbook.py @@ -21,7 +21,7 @@ from .coordinator import ( get_block_coordinator_by_device_id, get_rpc_coordinator_by_device_id, ) -from .utils import get_rpc_entity_name +from .utils import get_rpc_channel_name @callback @@ -43,7 +43,7 @@ def async_describe_events( rpc_coordinator = get_rpc_coordinator_by_device_id(hass, device_id) if rpc_coordinator and rpc_coordinator.device.initialized: key = f"input:{channel - 1}" - input_name = f"{rpc_coordinator.device.name} {get_rpc_entity_name(rpc_coordinator.device, key)}" + input_name = f"{rpc_coordinator.device.name} {get_rpc_channel_name(rpc_coordinator.device, key)}" elif click_type in BLOCK_INPUTS_EVENTS_TYPES: block_coordinator = get_block_coordinator_by_device_id(hass, device_id)