Fixes issue introduced in HA 2024.2.0 release where test against YamlObjects types no longer work, which resulted in no configurations loading. Fix was using isinstance() instead.
Also corrected typo in debugging statement.
Very low impact change, no logic changed.
Checklist
[ X] The PR title is clear, concise and follows conventional commit formatting.
[ X] Double-check your branch is based on develop and targets develop
[ X] Issue raised to compliment this PR (if no pre-existing issue exists)
[ n/a] Code is commented, particularly in hard-to-understand areas and relevant issues are referenced.
[ n/a] Documentation repository updated to reflect new features or changes in behaviour (VERY IMPORTANT, undocumented features cannot be discovered and used!)
[X ] Description explains the issue/use-case resolved and auto-closes related issues.
[ n/a] Breaking changes or changes in behaviour are called out and discussed in separate issues.
[ X] Testing of new changes completed by person who raised the issue.
Please open an issue before embarking on any significant pull request, especially those that add a new library or change existing tests, otherwise you risk spending a lot of time working on something that might not end up being merged into the project.
License
By submitting a patch, you agree to allow the project owners to license your work under the terms of the project license. Thank you for contributing!
You're a legend! The solution is so simple, yet I spent ages getting the YamlObject code to work properly for the previous fix. Glad that it's no longer necessary.
Description
Fixes issue introduced in HA 2024.2.0 release where test against YamlObjects types no longer work, which resulted in no configurations loading. Fix was using isinstance() instead.
Also corrected typo in debugging statement.
Very low impact change, no logic changed.
Checklist
conventional commit
formatting.develop
and targetsdevelop
Please open an issue before embarking on any significant pull request, especially those that add a new library or change existing tests, otherwise you risk spending a lot of time working on something that might not end up being merged into the project.
License
By submitting a patch, you agree to allow the project owners to license your work under the terms of the project license. Thank you for contributing!
Related Issues
Closes
320