mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-02 22:27:23 +00:00
Update ts-eslint (#23723)
* Update ts-eslint * Remove comments * Remove unused ts-ignore * Add undefined generic type instead of unknown * Remove unused undefined type * Fix type issues * Use undefined instead of void for subscribed return type
This commit is contained in:
@@ -366,7 +366,7 @@ export const saveAutomationConfig = (
|
||||
hass: HomeAssistant,
|
||||
id: string,
|
||||
config: AutomationConfig
|
||||
) => hass.callApi<void>("POST", `config/automation/config/${id}`, config);
|
||||
) => hass.callApi<undefined>("POST", `config/automation/config/${id}`, config);
|
||||
|
||||
export const normalizeAutomationConfig = <
|
||||
T extends Partial<AutomationConfig> | AutomationConfig,
|
||||
|
||||
Reference in New Issue
Block a user