From 3c8707f912eeaa2103c0ea5678c4ddaa795f7b8a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 22 May 2021 19:16:11 +0200 Subject: [PATCH] Fix tcp typing, fixing CI (#50965) --- homeassistant/components/tcp/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tcp/sensor.py b/homeassistant/components/tcp/sensor.py index 84f92582947..ff5db39bba7 100644 --- a/homeassistant/components/tcp/sensor.py +++ b/homeassistant/components/tcp/sensor.py @@ -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