Move fixtures part 1 (#58902)
This commit is contained in:
parent
0a94badb72
commit
31153ac155
561 changed files with 188 additions and 991 deletions
|
@ -0,0 +1,6 @@
|
|||
cover:
|
||||
- platform: command_line
|
||||
covers:
|
||||
from_yaml:
|
||||
command_state: "echo closed"
|
||||
value_template: "{{ value }}"
|
|
@ -18,7 +18,7 @@ from homeassistant.const import (
|
|||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from tests.common import async_fire_time_changed
|
||||
from tests.common import async_fire_time_changed, get_fixture_path
|
||||
|
||||
|
||||
async def setup_test_entity(hass: HomeAssistant, config_dict: dict[str, Any]) -> None:
|
||||
|
@ -133,11 +133,7 @@ async def test_reload(hass: HomeAssistant) -> None:
|
|||
assert entity_state
|
||||
assert entity_state.state == "unknown"
|
||||
|
||||
yaml_path = os.path.join(
|
||||
os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
|
||||
"fixtures",
|
||||
"command_line/configuration.yaml",
|
||||
)
|
||||
yaml_path = get_fixture_path("configuration.yaml", "command_line")
|
||||
with patch.object(hass_config, "YAML_CONFIG_FILE", yaml_path):
|
||||
await hass.services.async_call(
|
||||
"command_line",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue