-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Fully finish the GatewayAlarm class and fix style issues #633
Conversation
Since this does not have to do with the gateway (I think)
@rytilahti could you please merge this PR? |
Co-Authored-By: Teemu R. <tpr@iki.fi>
Co-Authored-By: Teemu R. <tpr@iki.fi>
Co-Authored-By: Teemu R. <tpr@iki.fi>
@rytilahti all finished, I think I have adressed all improvements you pointed out. (only the device class left, schould it be underneath Gateway class or not...) |
@rytilahti The GatewayAlarm can now be used from the Gateway class.
|
@rytilahti can this now be merged? |
@rytilahti could you merge this and push to a new version so I can continue with the HomeAssistant PR as refrenced? |
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.
Sorry for the delay, if you could make those two changes and update the README to add this device, I think we can merge it as partially supported.
@rytilahti no problem! I think this can now be merged. |
Great, thanks 👍 I'll take care of cleaning up the original PR and get it merged for a new release. |
* add new line * remove To Do comment Since this does not have to do with the gateway (I think) * Fully finish the GatewayAlarm class * black fix styles * fix hound issue * flake8 was wrong, black is wright * ignore flake8 E203 error since black handles that * Turning --> Turn Co-Authored-By: Teemu R. <tpr@iki.fi> * Turning --> Turn Co-Authored-By: Teemu R. <tpr@iki.fi> * add type return Co-Authored-By: Teemu R. <tpr@iki.fi> * add flake8 exception for single line * remove global flake8 ignore * add extra space * add return types * fix return types * datatime.datetime is unknown type * remove print() * Reorganize classes * Use parent and improve init * Add Xiaomi Aqara Gateway to readme Co-authored-by: Teemu R. <tpr@iki.fi>
* WIP: gateway support thanks to dgi (dustcloud fame) and javascript miio lib * add set_gateway_volume, slight fixes * port over to the new cli api, remove MessageNet which was supposed only for testing * Added more light controls for gateway (#624) * added color and brightness functionality * added command to set both color and brightness * linting fixes * Fully finish the GatewayAlarm class and fix style issues (#633) * add new line * remove To Do comment Since this does not have to do with the gateway (I think) * Fully finish the GatewayAlarm class * black fix styles * fix hound issue * flake8 was wrong, black is wright * ignore flake8 E203 error since black handles that * Turning --> Turn Co-Authored-By: Teemu R. <tpr@iki.fi> * Turning --> Turn Co-Authored-By: Teemu R. <tpr@iki.fi> * add type return Co-Authored-By: Teemu R. <tpr@iki.fi> * add flake8 exception for single line * remove global flake8 ignore * add extra space * add return types * fix return types * datatime.datetime is unknown type * remove print() * Reorganize classes * Use parent and improve init * Add Xiaomi Aqara Gateway to readme Co-authored-by: Teemu R. <tpr@iki.fi> * Cleanup gateway for initial release * fix import sorting Co-authored-by: Maksim Melnikov <approximatenumber@gmail.com> Co-authored-by: starkillerOG <starkiller.og@gmail.com>
@rytilahti do you know when you will push to a new version of miho? |
I have fully tested and varified all functions in the GatewayAlarm class.
I have moved all functions related to the GatewayAlarm out of the Gateway class.
I run black on top of the file to fix lots of styling issues.
This includes everything of PR: #630, so I will close that one.