Skip to content

Fix hassio discovery#17275

Merged
balloob merged 9 commits intodevfrom
fix-hassio-discovery
Oct 10, 2018
Merged

Fix hassio discovery#17275
balloob merged 9 commits intodevfrom
fix-hassio-discovery

Conversation

@pvizeli
Copy link
Copy Markdown
Member

@pvizeli pvizeli commented Oct 9, 2018

Description:

This fix the bug, that hassio component can startup after start and don't discovery exists requests.

@pvizeli pvizeli added this to the 0.80 milestone Oct 9, 2018
@ghost ghost assigned pvizeli Oct 9, 2018
@ghost ghost added the in progress label Oct 9, 2018
@home-assistant home-assistant deleted a comment from houndci-bot Oct 9, 2018
@home-assistant home-assistant deleted a comment from houndci-bot Oct 9, 2018
@home-assistant home-assistant deleted a comment from houndci-bot Oct 9, 2018
@home-assistant home-assistant deleted a comment from houndci-bot Oct 9, 2018
@ghost ghost added the in progress label Oct 9, 2018
patch('homeassistant.components.mqtt.'
'config_flow.FlowHandler.async_step_hassio',
Mock(return_value=mock_coro({"type": "abort"}))
) as mock_mqtt:):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closing bracket does not match visual indentation
SyntaxError: invalid syntax
missing whitespace after ':'

})


async def test_hassio_discovery_startup_done(hass, aioclient_mock,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 10, 2018

When can this happen?

@pvizeli
Copy link
Copy Markdown
Member Author

pvizeli commented Oct 10, 2018

on 99% of our hass.io installation they load the component over the internal discovery after startup

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 10, 2018

Ah I see it, discovery component doesn't kick in till START event.

@balloob balloob merged commit 83dd961 into dev Oct 10, 2018
@ghost ghost removed the in progress label Oct 10, 2018
@balloob balloob deleted the fix-hassio-discovery branch October 10, 2018 11:50
balloob pushed a commit that referenced this pull request Oct 10, 2018
* Update discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Fix tests

* fix lint
@balloob balloob mentioned this pull request Oct 12, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants