mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Bugfix provided by awarecan.
This commit is contained in:
parent
a1c524d372
commit
6e4a6cc069
@ -182,7 +182,7 @@ class SnmpSensor(Entity):
|
||||
if value is None:
|
||||
value = STATE_UNKNOWN
|
||||
elif self._value_template is not None:
|
||||
value = self._value_template.render_with_possible_json_value(
|
||||
value = self._value_template.async_render_with_possible_json_value(
|
||||
value, STATE_UNKNOWN)
|
||||
|
||||
self._state = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user