Adjust pylint for IMPERIAL_SYSTEM deprecation (#80874)

* Adjust pylint for IMPERIAL_SYSTEM deprecation

* Use correct location

* Adjust components
This commit is contained in:
epenet
2022-10-24 15:25:00 +02:00
committed by GitHub
parent ec4b8c49fe
commit 0c79a9a33d
3 changed files with 10 additions and 4 deletions

View File

@@ -296,6 +296,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^(distance|pressure|speed|temperature|volume)$"),
),
],
"homeassistant.util.unit_system": [
ObsoleteImportMatch(
reason="replaced by US_CUSTOMARY_SYSTEM",
constant=re.compile(r"^IMPERIAL_SYSTEM$"),
),
],
}