Skip to content

Commit

Permalink
revert!: "fix(call-service): Merge target data into service data befo…
Browse files Browse the repository at this point in the history
…re sending to HA"

This reverts commit 60f55f2.

BREAKING-CHANGE: Entity IDs incorrectly placed in `targets.entity_id` instead of `data.entity_id` will now trigger errors.
  • Loading branch information
zachowj committed Aug 16, 2024
1 parent 9251c91 commit 5960d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/homeAssistant/Websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@ export default class Websocket {
type: 'call_service',
domain,
service,
// Merging target data with service data because the service call validation will change entity_id from a string to an array and not all services support that
service_data: { ...data, ...target },
service_data: data,
target,
return_response: returnResponse,
};

Expand Down

0 comments on commit 5960d09

Please sign in to comment.