Add alias to DOMAIN import in tests [h-m] (#125577)
* Add alias to DOMAIN import in tests [h-m] * Revert changes to mqtt
This commit is contained in:
parent
aab939cf6c
commit
6ea59ffa94
17 changed files with 189 additions and 155 deletions
|
@ -2,7 +2,11 @@
|
|||
|
||||
from homeassistant.components.knx.const import CONF_RESPOND_TO_READ, KNX_ADDRESS
|
||||
from homeassistant.components.knx.schema import TimeSchema
|
||||
from homeassistant.components.time import ATTR_TIME, DOMAIN, SERVICE_SET_VALUE
|
||||
from homeassistant.components.time import (
|
||||
ATTR_TIME,
|
||||
DOMAIN as TIME_DOMAIN,
|
||||
SERVICE_SET_VALUE,
|
||||
)
|
||||
from homeassistant.const import CONF_NAME
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
||||
|
@ -24,7 +28,7 @@ async def test_time(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
|||
)
|
||||
# set value
|
||||
await hass.services.async_call(
|
||||
DOMAIN,
|
||||
TIME_DOMAIN,
|
||||
SERVICE_SET_VALUE,
|
||||
{"entity_id": "time.test", ATTR_TIME: "01:02:03"},
|
||||
blocking=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue