Add entity translations to QNAP QSW (#98915)
This commit is contained in:
parent
a89a5f486d
commit
56b99d2bc6
10 changed files with 61 additions and 29 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue