-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DOMAIN_OVERRIDES workaround (#2468)
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Workarounds for issues that should not be fixed.""" | ||
|
||
|
||
DOMAIN_OVERRIDES = { | ||
# https://github.com/hacs/integration/issues/2465 | ||
"custom-components/sensor.custom_aftership": "custom_aftership" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from custom_components.hacs.utils.workarounds import DOMAIN_OVERRIDES | ||
|
||
|
||
def test_domain_ovverides() -> None: | ||
assert DOMAIN_OVERRIDES.get("custom-components/sensor.custom_aftership") == "custom_aftership" | ||
assert DOMAIN_OVERRIDES.get("awesome/repo") is None |