1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Rename fixtures (#2946)

* Rename fixtures

* Use tilde
This commit is contained in:
Joakim Sørensen
2021-06-10 12:45:39 +02:00
committed by GitHub
parent 22c8ff1314
commit b70ed9a60d
7 changed files with 2 additions and 2 deletions

View File

@@ -89,8 +89,8 @@ def dbus() -> DBus:
fixture = re.sub(r"_[0-9]+$", "", fixture)
# special case
if exists_fixture(f"{fixture}_*.{filetype}"):
fixture = f"{fixture}_*"
if exists_fixture(f"{fixture}_~.{filetype}"):
fixture = f"{fixture}_~"
else:
fixture = f"{fixture}-{command[10].split('.')[-1]}"
filetype = "fixture"