From fd363f9c3a02abb29db2af2d1641586828fb30e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20W?= Date: Thu, 21 Jan 2021 09:41:09 +0100 Subject: [PATCH] Format SNMP sensor data which are not strings/counters (#44823) --- homeassistant/components/snmp/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/snmp/sensor.py b/homeassistant/components/snmp/sensor.py index 9ca0444f7bc..a60183a1a0f 100644 --- a/homeassistant/components/snmp/sensor.py +++ b/homeassistant/components/snmp/sensor.py @@ -210,4 +210,4 @@ class SnmpData: self.value = self._default_value else: for resrow in restable: - self.value = str(resrow[-1]) + self.value = resrow[-1].prettyPrint()