From ab59e5d7b18929738678d1b1091454b096322ef2 Mon Sep 17 00:00:00 2001 From: Guy Khmelnitsky Date: Sun, 15 Feb 2026 15:19:10 +0200 Subject: [PATCH] Remove debug service that exposes coordinator data The debug service 'debug_get_coordinator_data' was exposing all coordinator data via a public service, which is a privacy concern. This removes the service entirely. --- custom_components/iec/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/custom_components/iec/__init__.py b/custom_components/iec/__init__.py index 1011e84..e4a33c9 100644 --- a/custom_components/iec/__init__.py +++ b/custom_components/iec/__init__.py @@ -29,17 +29,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - # Register the debug service - async def handle_debug_get_coordinator_data(call) -> None: # noqa: ANN001 ARG001 - # Log or return coordinator data - data = iec_coordinator.data - _LOGGER.info("Coordinator data: %s", data) - hass.bus.async_fire("custom_component_debug_event", {"data": data}) - - hass.services.async_register( - DOMAIN, "debug_get_coordinator_data", handle_debug_get_coordinator_data - ) - return True