Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix history view on missing state #11663

Merged
merged 3 commits into from Feb 12, 2022
Merged

Conversation

lintaba
Copy link
Contributor

@lintaba lintaba commented Feb 11, 2022

in some cases a removed button can have an empty state, in which case we tried to convert it to date. this hotfix returns with some error value, instead of crashing the whole history view.

#11605

Breaking change

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

in some cases a removed button can have an empty state, in which case we tried to convert it to date. this hotfix returns with some error value, instead of crashing the whole history view.

home-assistant#11605
@homeassistant
Copy link
Contributor

Hi @lintaba,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@balloob balloob merged commit d86a18b into home-assistant:dev Feb 12, 2022
@@ -19,6 +19,9 @@ export const computeStateDisplay = (
if (compareState === UNKNOWN || compareState === UNAVAILABLE) {
return localize(`state.default.${compareState}`);
}
if (compareState === "") {
Copy link
Member

Choose a reason for hiding this comment

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

Just realized that this is wrong. Input text can have empty state, probably other integrations too

Copy link
Member

Choose a reason for hiding this comment

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

Revert in #11677

@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 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.

History page loading forever
3 participants