Add unique ID to WLED config entries (#30480)

* Add unique ID to WLED config entries

* Improve robustness of the tests
This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2020-01-04 22:48:31 +01:00
1 parent bf9418e51a
commit 51db9bdfce
4 files changed
+56 -40

No files matched your search

+8
View File
@@ -33,6 +33,14 @@ async def test_unload_config_entry(
assert not hass.data.get(DOMAIN)
async def test_setting_unique_id(hass, aioclient_mock):
"""Test we set unique ID if not set yet."""
entry = await init_integration(hass, aioclient_mock)
assert hass.data[DOMAIN]
assert entry.unique_id == "aabbccddeeff"
async def test_interval_update(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None: