Fix tcp typing, fixing CI (#50965)
This commit is contained in:
parent
e64b5afa58
commit
3c8707f912
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ from homeassistant.exceptions import TemplateError
|
|||
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,
|
||||
|
@ -112,7 +112,7 @@ class TcpSensor(SensorEntity):
|
|||
return self._config[CONF_NAME]
|
||||
|
||||
@property
|
||||
def state(self) -> str | None:
|
||||
def state(self) -> StateType:
|
||||
"""Return the state of the device."""
|
||||
return self._state
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue