mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +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(
|
||||
base_class="AlarmControlPanelEntity",
|
||||
matches=[
|
||||
TypeHintMatch(
|
||||
function_name="device_class",
|
||||
return_type=["str", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="code_format",
|
||||
return_type=["CodeFormat", None],
|
||||
@@ -1220,10 +1216,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||
ClassTypeHintMatch(
|
||||
base_class="FanEntity",
|
||||
matches=[
|
||||
TypeHintMatch(
|
||||
function_name="device_class",
|
||||
return_type=["str", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="percentage",
|
||||
return_type=["int", None],
|
||||
@@ -1428,10 +1420,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||
ClassTypeHintMatch(
|
||||
base_class="LockEntity",
|
||||
matches=[
|
||||
TypeHintMatch(
|
||||
function_name="device_class",
|
||||
return_type=["str", None],
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="changed_by",
|
||||
return_type=["str", None],
|
||||
|
Reference in New Issue
Block a user