Remove rounding from The Things Network (#47157)
parent
d02218ff30
commit
7bc2328802
homeassistant/components/thethingsnetwork
|
@ -81,8 +81,8 @@ class TtnDataSensor(Entity):
|
|||
"""Return the state of the entity."""
|
||||
if self._ttn_data_storage.data is not None:
|
||||
try:
|
||||
return round(self._state[self._value], 1)
|
||||
except (KeyError, TypeError):
|
||||
return self._state[self._value]
|
||||
except KeyError:
|
||||
return None
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue