Skip to content

Commit

Permalink
fix: Add Home Assistant device class for flow rates (e.g., Sonoff SWV) (
Browse files Browse the repository at this point in the history
  • Loading branch information
tathamoddie authored Jan 28, 2025
1 parent 7b199f8 commit cdbd553
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = {
energy: {device_class: 'energy', state_class: 'total_increasing'},
external_temperature_input: {icon: 'mdi:thermometer'},
formaldehyd: {state_class: 'measurement'},
flow: {device_class: 'volume_flow_rate', state_class: 'measurement'},
gas_density: {icon: 'mdi:google-circles-communities', state_class: 'measurement'},
hcho: {icon: 'mdi:air-filter', state_class: 'measurement'},
humidity: {device_class: 'humidity', state_class: 'measurement'},
Expand Down

0 comments on commit cdbd553

Please sign in to comment.