Skip to content

Generate Lovelace config on the fly#2091

Merged
balloob merged 3 commits intodevfrom
ll-on-the-fly
Nov 23, 2018
Merged

Generate Lovelace config on the fly#2091
balloob merged 3 commits intodevfrom
ll-on-the-fly

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Nov 23, 2018

When the user has no Lovelace config, will generate a lovelace config based on the available entities. Uses same strategy as for the legacy state panel.

This will allow users to transition to Lovelace at their own pace. They can keep using the automatic generated one initially.

Fixes #2088

States panel

image

Lovelace panel (auto-generated)

image

@ghost ghost assigned balloob Nov 23, 2018
@ghost ghost added the in progress label Nov 23, 2018

states.forEach((stateObj) => {
const domain = computeStateDomain(stateObj);
if (domain === "alarm_control_panel") {
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.

Why not use switch?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🤷‍♂️ no real reason.

@balloob balloob merged commit d41a4cf into dev Nov 23, 2018
@ghost ghost removed the in progress label Nov 23, 2018
@balloob balloob deleted the ll-on-the-fly branch November 23, 2018 16:39
@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.

Convert LL config on the fly

3 participants