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:
epenet 2024-09-09 15:21:01 +02:00 committed by GitHub
parent aab939cf6c
commit 6ea59ffa94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 189 additions and 155 deletions

View file

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