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
Cleanup homematicip_cloud #13356
Cleanup homematicip_cloud #13356
Conversation
|
||
from socket import timeout |
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.
socket
is part of standard library in python.
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.
But seems I need to import socket in order to used it for "except timeout:" later.
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.
Yes. I'm just saying that the blank line should go between import socket
and import voluptuous as vol
.
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.
OK, got it.
self._home = home | ||
self._device = device | ||
|
||
@asyncio.coroutine | ||
def async_added_to_hass(self): |
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.
Drop the coroutine decorator and define the method with async def async_added_to_hass(self):
.
_LOGGER.debug('Setting up access point %s', home.label) | ||
|
||
@asyncio.coroutine | ||
def async_added_to_hass(self): |
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.
Same as above.
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.
One more fix and this should be good.
@@ -2,14 +2,14 @@ | |||
Support for HomematicIP sensors. | |||
|
|||
For more details about this component, please refer to the documentation at | |||
https://home-assistant.io/components/homematicip/ | |||
https://home-assistant.io/components/homematicip_cloud/ |
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.
This url is still not correct. Look at other sensor platforms for the correct format.
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.
Hmm, it looks like im still not 100% used to the git branch flow, as I already started to implement new devices as well... sorry.
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.
Got it.
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!
Can be merged when build passes. |
Description:
Cleanup of the initial PR
Checklist:
tox
. Your PR cannot be merged unless tests passIf the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.