Fix namespace-import pylint warning in shelly tests (#119349)
This commit is contained in:
parent
a3ac0af56d
commit
08eb8232e5
12 changed files with 119 additions and 133 deletions
|
@ -379,12 +379,12 @@ async def test_rpc_sleeping_update(
|
|||
async def test_rpc_restored_sleeping_update(
|
||||
hass: HomeAssistant,
|
||||
mock_rpc_device: Mock,
|
||||
device_reg: DeviceRegistry,
|
||||
device_registry: DeviceRegistry,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
"""Test RPC restored update entity."""
|
||||
entry = await init_integration(hass, 2, sleep_period=1000, skip_setup=True)
|
||||
register_device(device_reg, entry)
|
||||
register_device(device_registry, entry)
|
||||
entity_id = register_entity(
|
||||
hass,
|
||||
UPDATE_DOMAIN,
|
||||
|
@ -429,7 +429,7 @@ async def test_rpc_restored_sleeping_update(
|
|||
async def test_rpc_restored_sleeping_update_no_last_state(
|
||||
hass: HomeAssistant,
|
||||
mock_rpc_device: Mock,
|
||||
device_reg: DeviceRegistry,
|
||||
device_registry: DeviceRegistry,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
"""Test RPC restored update entity missing last state."""
|
||||
|
@ -442,7 +442,7 @@ async def test_rpc_restored_sleeping_update_no_last_state(
|
|||
},
|
||||
)
|
||||
entry = await init_integration(hass, 2, sleep_period=1000, skip_setup=True)
|
||||
register_device(device_reg, entry)
|
||||
register_device(device_registry, entry)
|
||||
entity_id = register_entity(
|
||||
hass,
|
||||
UPDATE_DOMAIN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue