def async_get_loaded_config_entries(hass: HomeAssistant) -> list[HomematicConfigEntry]:
    """Get config entries for HomematicIP local."""
    return [
        entry
        for entry in hass.config_entries.async_entries(domain=DOMAIN, include_ignore=False, include_disabled=False)
        if entry.state == ConfigEntryState.LOADED
    ]
Get config entries for HomematicIP local.
custom_components/homematicip_local/services.py