Fix zwave_js adding not fully interviewed nodes (#45162)

* fix situation were nodes are being added or not fully interviewed

* adjust test

* lint
This commit is contained in:
Marcel van der Veldt 2021-01-15 01:09:03 +01:00 committed by GitHub
parent 7fada806af
commit a276f2d19e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 14 deletions

View file

@ -194,8 +194,8 @@ async def test_existing_node_not_ready(hass, client, multisensor_6, device_regis
state = hass.states.get(AIR_TEMPERATURE_SENSOR)
assert not state # entity and device not yet added
assert not device_registry.async_get_device(
assert not state # entity not yet added
assert device_registry.async_get_device( # device should be added
identifiers={(DOMAIN, air_temperature_device_id)}
)