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 for event filter #666

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Fix for event filter #666

merged 2 commits into from
Mar 22, 2024

Conversation

andrew-codechimp
Copy link
Contributor

@andrew-codechimp andrew-codechimp commented Mar 21, 2024

Description

Fixes upcoming breaking change in 2024.4 as referenced in #665 and home-assistant/core#113798 (comment)

This change makes it backward compatible with previous releases by checking type of event param

Motivation and Context

Solves breaking change in 2024.4

Motivation - I had to fix this myself in Battery Notes so sharing as Spook has been great inspiration for me starting out creating custom components.

How has this been tested?

Tested against current releases prior to 2024.4 only

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.

fixes #665

@frenck frenck added the bugfix Inconsistencies or issues which will cause a problem for users or implementors. label Mar 22, 2024
Copy link
Owner

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Thanks, @andrew-codechimp 👍

../Frenck

Copy link

sonarcloud bot commented Mar 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@frenck frenck merged commit 4f148a7 into frenck:main Mar 22, 2024
6 checks passed
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
Development

Successfully merging this pull request may close these issues.

'dict' object has no attribute 'data'
2 participants