mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update pylint plugin to use TriggerActionType (#76819)
This commit is contained in:
parent
7ec54edc69
commit
91005f4694
@ -337,8 +337,8 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = {
|
|||||||
arg_types={
|
arg_types={
|
||||||
0: "HomeAssistant",
|
0: "HomeAssistant",
|
||||||
1: "ConfigType",
|
1: "ConfigType",
|
||||||
# 2: "AutomationActionType", # AutomationActionType is deprecated -> TriggerActionType
|
2: "TriggerActionType",
|
||||||
# 3: "AutomationTriggerInfo", # AutomationTriggerInfo is deprecated -> TriggerInfo
|
3: "TriggerInfo",
|
||||||
},
|
},
|
||||||
return_type="CALLBACK_TYPE",
|
return_type="CALLBACK_TYPE",
|
||||||
),
|
),
|
||||||
|
@ -38,6 +38,20 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
|||||||
constant=re.compile(r"^FORMAT_(\w*)$"),
|
constant=re.compile(r"^FORMAT_(\w*)$"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
"homeassistant.components.automation": [
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by TriggerActionType from helpers.trigger",
|
||||||
|
constant=re.compile(r"^AutomationActionType$")
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by TriggerData from helpers.trigger",
|
||||||
|
constant=re.compile(r"^AutomationTriggerData$")
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by TriggerInfo from helpers.trigger",
|
||||||
|
constant=re.compile(r"^AutomationTriggerInfo$")
|
||||||
|
),
|
||||||
|
],
|
||||||
"homeassistant.components.binary_sensor": [
|
"homeassistant.components.binary_sensor": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by BinarySensorDeviceClass enum",
|
reason="replaced by BinarySensorDeviceClass enum",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user