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

Fix crash on unavailable automations & scripts #497

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Conversation

frenck
Copy link
Owner

@frenck frenck commented Dec 30, 2023

Description

When an automation or script has an parsing error, and entity stub object is used to fill in the gap. Being UnavailableScriptEntity and UnavailableAutomationEntity.

These can be skipped for determining unknown entities/devices/areas, as they are not valid YAML/not loaded.

Fixes #476

Motivation and Context

How has this been tested?

Good

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@frenck frenck added the bugfix Inconsistencies or issues which will cause a problem for users or implementors. label Dec 30, 2023
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@frenck frenck merged commit 2f6d0b2 into main Dec 30, 2023
@frenck frenck deleted the frenck-2023-1539 branch December 30, 2023 11:10
@frenck frenck mentioned this pull request Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementors.
Projects
None yet
1 participant