Closed andrew-codechimp closed 1 month ago
Fixes upcoming breaking change in 2024.4 as referenced in #665 and https://github.com/home-assistant/core/pull/113798#issue-2194328239
This change makes it backward compatible with previous releases by checking type of event param
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.
Tested against current releases prior to 2024.4 only
fixes #665
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots No data about Coverage No data about Duplication
See analysis details on SonarCloud
Description
Fixes upcoming breaking change in 2024.4 as referenced in #665 and https://github.com/home-assistant/core/pull/113798#issue-2194328239
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
Checklist
fixes #665