mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Bugfix provided by awarecan.
This commit is contained in:
committed by
Paulus Schoutsen
parent
366e270e94
commit
8379567636
@@ -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
|
||||
|
Reference in New Issue
Block a user