Skip to content

Commit

Permalink
fix(call-service): Allow the call-service input to accept strings in …
Browse files Browse the repository at this point in the history
…target properties

Fixes #1247
  • Loading branch information
zachowj committed Jan 9, 2024
1 parent b805cf8 commit f86e2c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nodes/call-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ const inputSchema: Joi.ObjectSchema = Joi.object({
service: Joi.string().required(),
data: Joi.alternatives(Joi.string().allow(''), Joi.object()).required(),
target: Joi.object().keys({
area_id: Joi.array().optional(),
device_id: Joi.array().optional(),
entity_id: Joi.array().optional(),
area_id: Joi.alternatives(Joi.string(), Joi.array().optional()),
device_id: Joi.alternatives(Joi.string(), Joi.array().optional()),
entity_id: Joi.alternatives(Joi.string(), Joi.array().optional()),
}),
});

Expand Down

0 comments on commit f86e2c6

Please sign in to comment.