Deprecate CONF_UNIT_SYSTEM_*** constants (#80320)
* Deprecate CONF_UNIT_SYSTEM_*** constants
* Adjust pylint plugin
* Add tests
* Remove single-use function
* Revert logic change
* Revert "Revert logic change"
This reverts commit 60959a0050
.
* Tweak again
This commit is contained in:
parent
284893d942
commit
bff5d1123f
8 changed files with 72 additions and 34 deletions
|
@ -267,6 +267,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
|||
reason="replaced by EntityCategory enum",
|
||||
constant=re.compile(r"^(ENTITY_CATEGORY_(\w*))|(ENTITY_CATEGORIES)$"),
|
||||
),
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by local constants",
|
||||
constant=re.compile(r"^(CONF_UNIT_SYSTEM_(\w*))$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.core": [
|
||||
ObsoleteImportMatch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue