Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions custom_components/iec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down