Add RestoreEntity pylint checks to all platforms (#90020)

This commit is contained in:
epenet
2023-03-27 20:08:20 +02:00
committed by GitHub
parent 18933df95c
commit 1937d803c5

View File

@@ -710,6 +710,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="AlarmControlPanelEntity", base_class="AlarmControlPanelEntity",
matches=[ matches=[
@@ -793,6 +797,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="BinarySensorEntity", base_class="BinarySensorEntity",
matches=[ matches=[
@@ -836,6 +844,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="CalendarEntity", base_class="CalendarEntity",
matches=[ matches=[
@@ -860,6 +872,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="Camera", base_class="Camera",
matches=[ matches=[
@@ -974,6 +990,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ClimateEntity", base_class="ClimateEntity",
matches=[ matches=[
@@ -1147,6 +1167,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="CoverEntity", base_class="CoverEntity",
matches=[ matches=[
@@ -1246,6 +1270,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="BaseTrackerEntity", base_class="BaseTrackerEntity",
matches=[ matches=[
@@ -1319,6 +1347,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -1400,6 +1432,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="GeolocationEvent", base_class="GeolocationEvent",
matches=[ matches=[
@@ -1427,6 +1463,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ImageProcessingEntity", base_class="ImageProcessingEntity",
matches=[ matches=[
@@ -1470,6 +1510,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -1525,6 +1569,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -1624,6 +1672,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="LockEntity", base_class="LockEntity",
matches=[ matches=[
@@ -1714,6 +1766,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="MediaPlayerEntity", base_class="MediaPlayerEntity",
matches=[ matches=[
@@ -2118,6 +2174,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -2185,6 +2245,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="SelectEntity", base_class="SelectEntity",
matches=[ matches=[
@@ -2275,6 +2339,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -2334,6 +2402,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -2445,6 +2517,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="ToggleEntity", base_class="ToggleEntity",
matches=_TOGGLE_ENTITY_MATCH, matches=_TOGGLE_ENTITY_MATCH,
@@ -2580,6 +2656,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="WaterHeaterEntity", base_class="WaterHeaterEntity",
matches=[ matches=[
@@ -2661,6 +2741,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
base_class="Entity", base_class="Entity",
matches=_ENTITY_MATCH, matches=_ENTITY_MATCH,
), ),
ClassTypeHintMatch(
base_class="RestoreEntity",
matches=_RESTORE_ENTITY_MATCH,
),
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="WeatherEntity", base_class="WeatherEntity",
matches=[ matches=[