1
mirror of https://github.com/home-assistant/core synced 2024-07-24 16:42:06 +02:00

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

This commit is contained in:
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

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