mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Cleanup device_class checks in pylint plugin (#76458)
This commit is contained in:
parent
bcdf880364
commit
bd795be0e9
@ -611,10 +611,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="AlarmControlPanelEntity",
|
base_class="AlarmControlPanelEntity",
|
||||||
matches=[
|
matches=[
|
||||||
TypeHintMatch(
|
|
||||||
function_name="device_class",
|
|
||||||
return_type=["str", None],
|
|
||||||
),
|
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="code_format",
|
function_name="code_format",
|
||||||
return_type=["CodeFormat", None],
|
return_type=["CodeFormat", None],
|
||||||
@ -1220,10 +1216,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="FanEntity",
|
base_class="FanEntity",
|
||||||
matches=[
|
matches=[
|
||||||
TypeHintMatch(
|
|
||||||
function_name="device_class",
|
|
||||||
return_type=["str", None],
|
|
||||||
),
|
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="percentage",
|
function_name="percentage",
|
||||||
return_type=["int", None],
|
return_type=["int", None],
|
||||||
@ -1428,10 +1420,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="LockEntity",
|
base_class="LockEntity",
|
||||||
matches=[
|
matches=[
|
||||||
TypeHintMatch(
|
|
||||||
function_name="device_class",
|
|
||||||
return_type=["str", None],
|
|
||||||
),
|
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="changed_by",
|
function_name="changed_by",
|
||||||
return_type=["str", None],
|
return_type=["str", None],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user