Fix namespace-import pylint warning in shelly tests (#119349)

This commit is contained in:
epenet 2024-06-11 08:08:47 +02:00 committed by GitHub
parent a3ac0af56d
commit 08eb8232e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 119 additions and 133 deletions

View file

@ -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,