mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Add water_heater checks to pylint plugin (#76911)
This commit is contained in:
parent
171893b484
commit
ce07748979
@ -1999,6 +1999,83 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
"water_heater": [
|
||||||
|
ClassTypeHintMatch(
|
||||||
|
base_class="Entity",
|
||||||
|
matches=_ENTITY_MATCH,
|
||||||
|
),
|
||||||
|
ClassTypeHintMatch(
|
||||||
|
base_class="WaterHeaterEntity",
|
||||||
|
matches=[
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="precision",
|
||||||
|
return_type="float",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="temperature_unit",
|
||||||
|
return_type="str",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="current_operation",
|
||||||
|
return_type=["str", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="operation_list",
|
||||||
|
return_type=["list[str]", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="current_temperature",
|
||||||
|
return_type=["float", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="target_temperature",
|
||||||
|
return_type=["float", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="target_temperature_high",
|
||||||
|
return_type=["float", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="target_temperature_low",
|
||||||
|
return_type=["float", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="is_away_mode_on",
|
||||||
|
return_type=["bool", None],
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="set_temperature",
|
||||||
|
kwargs_type="Any",
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="set_operation_mode",
|
||||||
|
arg_types={1: "str"},
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="turn_away_mode_on",
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="turn_away_mode_off",
|
||||||
|
return_type=None,
|
||||||
|
has_async_counterpart=True,
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="min_temp",
|
||||||
|
return_type="float",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="max_temp",
|
||||||
|
return_type="float",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
"weather": [
|
"weather": [
|
||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="Entity",
|
base_class="Entity",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user