1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-20 00:40:21 +01:00

Bump babel and eslint (#9049)

This commit is contained in:
Bram Kragten
2021-04-30 21:15:31 +02:00
committed by GitHub
parent d4118ade0f
commit 5754f4463d
244 changed files with 1814 additions and 2804 deletions

View File

@@ -135,7 +135,7 @@ export const fetchHassioAddonsInfo = async (
hass: HomeAssistant
): Promise<HassioAddonsInfo> => {
if (atLeastVersion(hass.config.version, 2021, 2, 4)) {
return await hass.callWS({
return hass.callWS({
type: "supervisor/api",
endpoint: "/addons",
method: "get",
@@ -152,7 +152,7 @@ export const fetchHassioAddonInfo = async (
slug: string
): Promise<HassioAddonDetails> => {
if (atLeastVersion(hass.config.version, 2021, 2, 4)) {
return await hass.callWS({
return hass.callWS({
type: "supervisor/api",
endpoint: `/addons/${slug}/info`,
method: "get",
@@ -170,23 +170,15 @@ export const fetchHassioAddonInfo = async (
export const fetchHassioAddonChangelog = async (
hass: HomeAssistant,
slug: string
) => {
return hass.callApi<string>("GET", `hassio/addons/${slug}/changelog`);
};
) => hass.callApi<string>("GET", `hassio/addons/${slug}/changelog`);
export const fetchHassioAddonLogs = async (
hass: HomeAssistant,
slug: string
) => {
return hass.callApi<string>("GET", `hassio/addons/${slug}/logs`);
};
export const fetchHassioAddonLogs = async (hass: HomeAssistant, slug: string) =>
hass.callApi<string>("GET", `hassio/addons/${slug}/logs`);
export const fetchHassioAddonDocumentation = async (
hass: HomeAssistant,
slug: string
) => {
return hass.callApi<string>("GET", `hassio/addons/${slug}/documentation`);
};
) => hass.callApi<string>("GET", `hassio/addons/${slug}/documentation`);
export const setHassioAddonOption = async (
hass: HomeAssistant,
@@ -215,7 +207,7 @@ export const validateHassioAddonOption = async (
slug: string
): Promise<{ message: string; valid: boolean }> => {
if (atLeastVersion(hass.config.version, 2021, 2, 4)) {
return await hass.callWS({
return hass.callWS({
type: "supervisor/api",
endpoint: `/addons/${slug}/options/validate`,
method: "post",
@@ -232,7 +224,7 @@ export const validateHassioAddonOption = async (
export const startHassioAddon = async (hass: HomeAssistant, slug: string) => {
if (atLeastVersion(hass.config.version, 2021, 2, 4)) {
return await hass.callWS({
return hass.callWS({
type: "supervisor/api",
endpoint: `/addons/${slug}/start`,
method: "post",
@@ -245,7 +237,7 @@ export const startHassioAddon = async (hass: HomeAssistant, slug: string) => {
export const stopHassioAddon = async (hass: HomeAssistant, slug: string) => {
if (atLeastVersion(hass.config.version, 2021, 2, 4)) {
return await hass.callWS({
return hass.callWS({
type: "supervisor/api",
endpoint: `/addons/${slug}/stop`,
method: "post",