Skip to content

Handle non existing states#2098

Merged
balloob merged 1 commit intodevfrom
handle-non-existing
Nov 23, 2018
Merged

Handle non existing states#2098
balloob merged 1 commit intodevfrom
handle-non-existing

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Nov 23, 2018

Handle groups that reference non-existing entities

image

Closes #2097


states.forEach((stateObj) => {
const domain = computeStateDomain(stateObj);
for (const [entityId /*, stateObj */] of states) {
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.

I am commenting out to show that this variable is available. We might need it in the future and I want people to not forget it .

import { LocalizeFunc } from "../../../mixins/localize-base-mixin";
import computeDomain from "../../../common/entity/compute_domain";

interface CardConfig {
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.

We should use LovelaceConfig (Should be LovelaceCardConfig) and move the rest of the interfaces to types so it can be reused?

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.

In a new pr but yes. I didn't want to rename the other one , impacts so many files

@balloob balloob merged commit 412b759 into dev Nov 23, 2018
@ghost ghost removed the in progress label Nov 23, 2018
@bramkragten bramkragten deleted the handle-non-existing branch November 30, 2018 11:25
@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