mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix Watergate Water meter volume sensor (#133606)
This commit is contained in:
parent
e6ef3fe507
commit
2413fc4c0d
@ -56,7 +56,7 @@ class WatergateSensorEntityDescription(SensorEntityDescription):
|
||||
DESCRIPTIONS: list[WatergateSensorEntityDescription] = [
|
||||
WatergateSensorEntityDescription(
|
||||
value_fn=lambda data: (
|
||||
data.state.water_meter.duration
|
||||
data.state.water_meter.volume
|
||||
if data.state and data.state.water_meter
|
||||
else None
|
||||
),
|
||||
|
@ -352,7 +352,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '100',
|
||||
'state': '1.2',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor[sensor.sonic_water_pressure-entry]
|
||||
|
Loading…
x
Reference in New Issue
Block a user