mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Adjust pylint plugin for climate HVACMode (#71727)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
30bf727dfe
commit
571c90b8cf
@ -62,6 +62,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||
),
|
||||
],
|
||||
"homeassistant.components.climate": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by HVACMode enum",
|
||||
constant=re.compile(r"^HVAC_MODE_(\w*)$"),
|
||||
),
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by ClimateEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
@ -72,6 +76,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||
reason="replaced by HVACAction enum",
|
||||
constant=re.compile(r"^CURRENT_HVAC_(\w*)$"),
|
||||
),
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by HVACMode enum",
|
||||
constant=re.compile(r"^HVAC_MODE_(\w*)$"),
|
||||
),
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by ClimateEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user