Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/tcp/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.template import Template
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers.typing import ConfigType, StateType

from .const import (
CONF_BUFFER_SIZE,
Expand Down Expand Up @@ -112,7 +112,7 @@ def name(self) -> str:
return self._config[CONF_NAME]

@property
def state(self) -> str | None:
def state(self) -> StateType:
"""Return the state of the device."""
return self._state

Expand Down