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:
parent
7fada806af
commit
a276f2d19e
2 changed files with 8 additions and 14 deletions
|
@ -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)}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue