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 "power outage memory" support for Aqara ceiling light L1-350 #2658

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

corvis
Copy link
Contributor

@corvis corvis commented Oct 17, 2023

Proposed change

This quirk adds support for power on behavior configuration of the device. Fixes #2649

Additional information

Test just verifies that signature definition is correct

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

@corvis corvis changed the title feat: add support for aqara ceiling light L1-350 (#2649) feat: add support for aqara ceiling light L1-350 Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (52667ef) 86.78% compared to head (1900e15) 86.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2658      +/-   ##
==========================================
+ Coverage   86.78%   86.80%   +0.01%     
==========================================
  Files         280      281       +1     
  Lines        8560     8571      +11     
==========================================
+ Hits         7429     7440      +11     
  Misses       1131     1131              
Files Coverage Δ
zhaquirks/xiaomi/aqara/light_acn.py 100.00% <100.00%> (ø)

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

@TheJulianJES TheJulianJES added the new quirk Adds support for a new device label Oct 18, 2023
@corvis corvis force-pushed the feat/lumi_acn003 branch 2 times, most recently from dcd991d to 0d19096 Compare October 18, 2023 09:39
@corvis corvis requested a review from TheJulianJES October 18, 2023 09:46
tests/test_aqara.py Outdated Show resolved Hide resolved
This quirk adds support for power on behavior of the device
@TheJulianJES TheJulianJES changed the title feat: add support for aqara ceiling light L1-350 Add "power outage memory" support for Aqara ceiling light L1-350 Oct 23, 2023
Copy link
Collaborator

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks again for the PR!
(I've fixed the merge conflict that came up for the tests file and changed one comment slightly -- commits will be squashed when merging anyway.)

(As a note for myself: The power_outage_memory attribute for this lamp can also be exposed as a configuration switch in ZHA (Home Assistant Core). This can't be added only using quirks (yet).)

@TheJulianJES TheJulianJES merged commit 307f926 into zigpy:dev Oct 23, 2023
14 checks passed
@corvis corvis deleted the feat/lumi_acn003 branch October 23, 2023 21:44
elupus pushed a commit to elupus/zha-device-handlers that referenced this pull request Jan 17, 2024
…py#2658)

feat: add support for aqara ceiling light L1-350 (zigpy#2649)

This quirk adds support for power on behavior of the device
lgraf pushed a commit to lgraf/zha-device-handlers that referenced this pull request May 6, 2024
…py#2658)

feat: add support for aqara ceiling light L1-350 (zigpy#2649)

This quirk adds support for power on behavior of the device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new quirk Adds support for a new device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] Aqara ceiling light L1-350 (ZNXDD01LM)
2 participants