Skip to content

Commit

Permalink
Home Assistant: use device_class presence for presence binary sensor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Nov 7, 2020
1 parent 0c6d4a0 commit f99257a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/extension/homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ class HomeAssistant extends Extension {
smoke: {device_class: 'smoke'},
gas: {device_class: 'gas'},
carbon_monoxide: {device_class: 'safety'},
presence: {device_class: 'presence'},
};

assert(!expose.endpoint, `Endpoint not supported for binary type`);
Expand Down

0 comments on commit f99257a

Please sign in to comment.