mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +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."""
|
||||
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…
x
Reference in New Issue
Block a user