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

Add backwards compatible shim in zha_event #170

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

dmulcahey
Copy link
Contributor

Fixes: home-assistant/core#124146

The schema for many events is expecting "value" and not "attribute_value".

Schema:
image

Event:
image

This was updated in the lib conversion and is breaking existing automations.

This PR adds value back to the event (while keeping the new "attribute_value") so that we can fix existing setups. Over time we should migrate the quirks event definitions to use "attribute_value" and once all have been updated we can remove "value".

Copy link

codecov bot commented Aug 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.76%. Comparing base (6189a2a) to head (f015eab).
Report is 6 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #170   +/-   ##
=======================================
  Coverage   95.76%   95.76%           
=======================================
  Files          61       61           
  Lines        9255     9256    +1     
=======================================
+ Hits         8863     8864    +1     
  Misses        392      392           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@puddly puddly merged commit c516144 into dev Aug 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZHA remote_button_short_press on aqara trigger twice the automation since 2024.8.0
2 participants