Home Assistant Unofficial Reference 2024.12.1
model.py
Go to the documentation of this file.
1 """Models for TCP platform."""
2 
3 from __future__ import annotations
4 
5 from typing import TypedDict
6 
7 from homeassistant.helpers.template import Template
8 
9 
10 class TcpSensorConfig(TypedDict):
11  """TypedDict for TcpSensor config."""
12 
13  name: str
14  host: str
15  port: str
16  timeout: int
17  payload: str
18  unit_of_measurement: str | None
19  value_template: Template | None
20  value_on: str | None
21  buffer_size: int
22  ssl: bool
23  verify_ssl: bool