Skip to content

Commit cdbd553

Browse files
authored
fix: Add Home Assistant device class for flow rates (e.g., Sonoff SWV) (#26035)
1 parent 7b199f8 commit cdbd553

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/extension/homeassistant.ts

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = {
172172
energy: {device_class: 'energy', state_class: 'total_increasing'},
173173
external_temperature_input: {icon: 'mdi:thermometer'},
174174
formaldehyd: {state_class: 'measurement'},
175+
flow: {device_class: 'volume_flow_rate', state_class: 'measurement'},
175176
gas_density: {icon: 'mdi:google-circles-communities', state_class: 'measurement'},
176177
hcho: {icon: 'mdi:air-filter', state_class: 'measurement'},
177178
humidity: {device_class: 'humidity', state_class: 'measurement'},

0 commit comments

Comments
 (0)