Adjust TCP integration

This commit is contained in:
Franck Nijhof
2020-10-26 17:29:41 +01:00
parent 1407668649
commit e5797eff00

View File

@@ -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(