mirror of
https://github.com/home-assistant/core.git
synced 2026-05-30 04:05:01 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
22 lines
422 B
Python
22 lines
422 B
Python
"""Models for TCP platform."""
|
|
|
|
from typing import TypedDict
|
|
|
|
from homeassistant.helpers.template import Template
|
|
|
|
|
|
class TcpSensorConfig(TypedDict):
|
|
"""TypedDict for TcpSensor config."""
|
|
|
|
name: str
|
|
host: str
|
|
port: str
|
|
timeout: int
|
|
payload: str
|
|
unit_of_measurement: str | None
|
|
value_template: Template | None
|
|
value_on: str | None
|
|
buffer_size: int
|
|
ssl: bool
|
|
verify_ssl: bool
|