1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Upgrade aiohue and fix race condition (#13475)

* Bump aiohue to 1.3

* Store bridge in hass.data before setting up platform

* Fix tests
This commit is contained in:
Paulus Schoutsen
2018-03-26 16:07:22 -07:00
committed by GitHub
parent 08bcf84170
commit f1d37fc849
5 changed files with 7 additions and 9 deletions

View File

@@ -66,6 +66,7 @@ async def test_only_create_no_username(hass):
async def test_configurator_callback(hass, mock_request):
"""."""
hass.data[hue.DOMAIN] = {}
with patch('aiohue.Bridge.create_user',
side_effect=aiohue.LinkButtonNotPressed):
await MockBridge(hass).async_setup()