Disconnect velux on hass stop#26266
Conversation
…ss device. disconnect is now being called on the 'EVENT_HOMEASSISTANT_STOP' event
|
So Ive added the "unknown" email to my account .. how do I retrigger the bot in order to re-evaluate? sigh.. |
logger level moved from info to debug only config[DOMAIN] exposed to module imports moved to top
MartinHjelmare
left a comment
There was a problem hiding this comment.
Good! Can be merged when lint and formatting is fixed and build passes.
No idea what to fix here ?? |
|
@gibman thanks for the PR, looking forward to having it in a release since it's quite annoying to keep powercycling my KLF 200 :) I'm not too familiar with the automated checks involved here, but clicking through the details links brought me to this: https://dev.azure.com/home-assistant/Home%20Assistant/_build/results?buildId=8149&view=logs&jobId=2fa2c639-d05e-530d-034e-4fb413fcea4e&j=4e214fed-f310-53fa-0018-b38e7beb405b -- if you expand the "Run flake8" section you get a bunch of lint errors: homeassistant/components/velux/init.py:27:38: W291 trailing whitespace This might also be useful for checking locally so that you don't have to wait for the CI robots to point out your errors: https://developers.home-assistant.io/docs/en/development_testing.html#preventing-linter-errors |
|
Please run black from the project root and commit the changes, to solve formatting. |
I think you assume that I know what black is ? :) regards |
|
This might be helpful: https://black.readthedocs.io/en/stable/installation_and_usage.html |
|
Black is mentioned in our developer docs: |
|
Thanks! |
Description:
Often when rebooting hass the KLF 200 device would not disconnect the previous connection which in turns locks out the use from connecting again.
In these situations one would have to powercycle the klf200 velux device, which could be a problem if not being at home.
Ive set up af listener for EVENT_HOMEASSISTANT_STOP, which would jsutm ake sure to call disconnect on the device.
more info here:
https://community.home-assistant.io/t/velux-component-for-klf-200-doesnt-support-the-new-api-with-firmware-2-0-0-71/75641/67
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all..coveragerc.If the code does not interact with devices: