diff --git a/src/data/config_entries.ts b/src/data/config_entries.ts index b8e17db1da..ec1cfc3def 100644 --- a/src/data/config_entries.ts +++ b/src/data/config_entries.ts @@ -89,11 +89,17 @@ export const getConfigEntries = ( } } return hass.callWS({ - type: "config_entries/get", + type: "config_entries/get_matching", ...params, }); }; +export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) => + hass.callWS<{ config_entry: ConfigEntry }>({ + type: "config_entries/get", + entry_id: configEntryId, + }); + export const updateConfigEntry = ( hass: HomeAssistant, configEntryId: string,