mirror of
https://github.com/home-assistant/core.git
synced 2025-08-24 23:11: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:
|
if self._config[CONF_VALUE_TEMPLATE] is not None:
|
||||||
try:
|
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
|
return
|
||||||
except TemplateError:
|
except TemplateError:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
|
Reference in New Issue
Block a user