-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Add Qingping Air Monitor Lite support support 8000 #48181
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 Qingping Air Monitor Lite support support #48181
Conversation
This pull request needs to be manually signed off by @home-assistant/core before it can get merged. |
Hey there @rytilahti, @syssi, @starkillerOG, mind taking a look at this pull request as its been labeled with an integration ( |
Btw, how other entities like temp and humidity sensors should be registered for this device? Do you have any examples for that? |
The challenge is to move the "retrieve the current status/values" logic to the |
I see. It looks like more things to do. The air quality part of this device is sufficient for me for now, so I'll try to retrieve other measurements the way you described within another PR. |
Does this PR require more any further work? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, I left a suggestion to simplify the mapping between model and supporting classes.
@emontnemery I applied your remarks. I experienced a "using before assignment" error so I needed to use lambda on |
@emontnemery could you look at it? |
Instead of the useless lambdas, can you just move the |
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @arturdobo 👍
Breaking change
Proposed change
Add support for Qingping Air Monitor Lite support (
cgllc.airm.cgdn1
)Type of change
Example entry for
configuration.yaml
:Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: