Add setup type hints (part 3) (#63961)
* Drop return value from vesync * Add setup type hints to netgear_lte * Drop return value from hyperion * Add setup type hints to opentherm_gw Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0d58887bc0
commit
ec1b45c922
7 changed files with 42 additions and 15 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Constants for the opentherm_gw integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pyotgw.vars as gw_vars
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
|
@ -49,7 +51,7 @@ TRANSLATE_SOURCE = {
|
|||
UNIT_KW = "kW"
|
||||
UNIT_L_MIN = f"L/{TIME_MINUTES}"
|
||||
|
||||
BINARY_SENSOR_INFO = {
|
||||
BINARY_SENSOR_INFO: dict[str, list] = {
|
||||
# [device_class, friendly_name format, [status source, ...]]
|
||||
gw_vars.DATA_MASTER_CH_ENABLED: [
|
||||
None,
|
||||
|
@ -211,7 +213,7 @@ BINARY_SENSOR_INFO = {
|
|||
gw_vars.OTGW_OVRD_HB: [None, "Gateway Override High Byte {}", [gw_vars.OTGW]],
|
||||
}
|
||||
|
||||
SENSOR_INFO = {
|
||||
SENSOR_INFO: dict[str, list] = {
|
||||
# [device_class, unit, friendly_name, [status source, ...]]
|
||||
gw_vars.DATA_CONTROL_SETPOINT: [
|
||||
SensorDeviceClass.TEMPERATURE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue