Add entity translations to QNAP QSW (#98915)

This commit is contained in:
Joost Lekkerkerker 2023-08-30 11:20:15 +02:00 committed by GitHub
parent a89a5f486d
commit 56b99d2bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 61 additions and 29 deletions

View file

@ -14,7 +14,7 @@ async def test_qnap_buttons(hass: HomeAssistant) -> None:
await async_init_integration(hass)
state = hass.states.get("button.qsw_m408_4c_reboot")
state = hass.states.get("button.qsw_m408_4c_restart")
assert state
assert state.state == STATE_UNKNOWN
@ -28,7 +28,7 @@ async def test_qnap_buttons(hass: HomeAssistant) -> None:
await hass.services.async_call(
BUTTON_DOMAIN,
SERVICE_PRESS,
{ATTR_ENTITY_ID: "button.qsw_m408_4c_reboot"},
{ATTR_ENTITY_ID: "button.qsw_m408_4c_restart"},
blocking=True,
)
await hass.async_block_till_done()