mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Netatmo rain gauge precision (#25036)
This commit is contained in:
parent
36ed725ab4
commit
8652c84745
@ -256,7 +256,7 @@ class NetatmoSensor(Entity):
|
|||||||
elif self.type == 'rain':
|
elif self.type == 'rain':
|
||||||
self._state = data['Rain']
|
self._state = data['Rain']
|
||||||
elif self.type == 'sum_rain_1':
|
elif self.type == 'sum_rain_1':
|
||||||
self._state = data['sum_rain_1']
|
self._state = round(data['sum_rain_1'], 1)
|
||||||
elif self.type == 'sum_rain_24':
|
elif self.type == 'sum_rain_24':
|
||||||
self._state = data['sum_rain_24']
|
self._state = data['sum_rain_24']
|
||||||
elif self.type == 'noise':
|
elif self.type == 'noise':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user