mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Remove rounding from The Things Network (#47157)
This commit is contained in:
parent
d02218ff30
commit
7bc2328802
@ -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…
x
Reference in New Issue
Block a user