Remove rounding from The Things Network (#47157)
This commit is contained in:
parent
d02218ff30
commit
7bc2328802
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ class TtnDataSensor(Entity):
|
||||||
"""Return the state of the entity."""
|
"""Return the state of the entity."""
|
||||||
if self._ttn_data_storage.data is not None:
|
if self._ttn_data_storage.data is not None:
|
||||||
try:
|
try:
|
||||||
return round(self._state[self._value], 1)
|
return self._state[self._value]
|
||||||
except (KeyError, TypeError):
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue