mirror of
https://github.com/home-assistant/core.git
synced 2025-08-24 15:01:36 +02:00
Adjust TCP integration
This commit is contained in:
@@ -136,7 +136,9 @@ class TcpSensor(Entity):
|
||||
|
||||
if self._config[CONF_VALUE_TEMPLATE] is not None:
|
||||
try:
|
||||
self._state = self._config[CONF_VALUE_TEMPLATE].render(value=value)
|
||||
self._state = self._config[CONF_VALUE_TEMPLATE].render(
|
||||
parse_result=False, value=value
|
||||
)
|
||||
return
|
||||
except TemplateError:
|
||||
_LOGGER.error(
|
||||
|
Reference in New Issue
Block a user