-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
Continue migration of methods from handler to aiohasupervisor #129183
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
Conversation
|
Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/supervisor, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
3ce22f9 to
c9abc20
Compare
| await hass.async_block_till_done() | ||
|
|
||
| assert aioclient_mock.call_count + len(supervisor_client.mock_calls) == 24 | ||
| assert aioclient_mock.call_count + len(supervisor_client.mock_calls) == 25 |
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.
For reviewers - Previously tests were mocking the HassIO.is_connected method rather then the url supervisor/ping so that call was not included in this count. Now that method in the library is being mocked just like all the others so the count increases by one.
998de29 to
51661f6
Compare
| return await hassio.send_command( | ||
| command, | ||
| payload={"version": version}, | ||
| timeout=None, |
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.
For reviewers - yes this change remove these overrides of the default timeout of 10s. I discussed it with Martin and all these timeout overrides for specific methods will be incorporated in the library. It will set appropriate timeouts for each API call for clients instead of asking them for a default timeout. This change will be made in home-assistant-libs/python-supervisor-client#23 and incorporated into the next release of the library.
jbouwh
left a comment
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.
LGTM for mqtt,
Thanks @mdegat01 👍
Proposed change
Migrate more methods from hassio/handler to aiohasupervisor
Type of change
Additional information
Checklist
ruff format 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.To help with the load of incoming pull requests: