Format SNMP sensor data which are not strings/counters ()

pull/45389/head
Jérôme W 2021-01-21 09:41:09 +01:00 committed by GitHub
parent 30622b5575
commit fd363f9c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
homeassistant/components/snmp

View File

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