mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Add AlarmControlPanelEntity to pylint checks (#74091)
This commit is contained in:
parent
f66acf293f
commit
319ef38d34
@ -572,6 +572,93 @@ _TOGGLE_ENTITY_MATCH: list[TypeHintMatch] = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
_INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
_INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||||
|
"alarm_control_panel": [
|
||||||
|
ClassTypeHintMatch(
|
||||||
|
base_class="Entity",
|
||||||
|
matches=_ENTITY_MATCH,
|
||||||
|
),
|
||||||
|
ClassTypeHintMatch(
|
||||||
|
base_class="AlarmControlPanelEntity",
|
||||||
|
matches=[
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="device_class",
|
||||||
|
return_type=["str", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="code_format",
|
||||||
|
return_type=["CodeFormat", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="changed_by",
|
||||||
|
return_type=["str", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="code_arm_required",
|
||||||
|
return_type="bool",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_features",
|
||||||
|
return_type="int",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_disarm",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_arm_home",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_arm_away",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_arm_night",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_arm_vacation",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_trigger",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="alarm_arm_custom_bypass",
|
||||||
|
named_arg_types={
|
||||||
|
"code": "str | None",
|
||||||
|
},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
"cover": [
|
"cover": [
|
||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="Entity",
|
base_class="Entity",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user