mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Cleanup device_class checks in pylint plugin (#76458)
This commit is contained in:
@@ -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],
|
||||||
|
Reference in New Issue
Block a user