Skip to content

Move lovelace data to /src/data/lovelace.ts#2119

Merged
balloob merged 3 commits intodevfrom
move-lovelace-data
Nov 27, 2018
Merged

Move lovelace data to /src/data/lovelace.ts#2119
balloob merged 3 commits intodevfrom
move-lovelace-data

Conversation

@bramkragten
Copy link
Copy Markdown
Member

No description provided.

import { HomeAssistant } from "../../../types";
import { LovelaceConfig, LovelaceCardConfig } from "../types";
import { HomeAssistant } from "../types";
import { LovelaceConfig, LovelaceCardConfig } from "../panels/lovelace/types";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the types move here too? They are all related to the Lovelace component, not the Lovelace panel.

import { HomeAssistant } from "../types";
import { LovelaceConfig, LovelaceCardConfig } from "../panels/lovelace/types";

export const lovelaceConfig = (hass: HomeAssistant): Promise<void> =>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call this fetchConfig? Also, returning a Promise<void>? That should be Promise<LovelaceConfig> ?

@balloob balloob merged commit 97f5d8e into dev Nov 27, 2018
@balloob balloob deleted the move-lovelace-data branch November 27, 2018 09:05
@ghost ghost removed the in progress label Nov 27, 2018
@balloob balloob mentioned this pull request Dec 5, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants