Skip to content

Commit

Permalink
fix(call-service): Remove spaces around entity ids for homeassistant …
Browse files Browse the repository at this point in the history
…domain

Closes #170
  • Loading branch information
zachowj committed Dec 1, 2019
1 parent a5a5e62 commit 564670a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/call-service/call-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = function(RED) {
apiDomain === 'homeassistant' &&
entityId.indexOf(',') !== -1
) {
apiData.entity_id = entityId.split(',');
apiData.entity_id = entityId.split(',').map(e => e.trim());
} else {
apiData.entity_id = entityId;
}
Expand Down

0 comments on commit 564670a

Please sign in to comment.