Skip to content

Commit

Permalink
fix issue with multiple entity_ids with comma separated
Browse files Browse the repository at this point in the history
  • Loading branch information
jekalmin committed Oct 9, 2023
1 parent 2998420 commit 924f516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/extended_openai_conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,9 @@ async def execute_services(
"service_data", service_argument.get("data", {})
)
entity_id = service_data.get("entity_id", service_argument.get("entity_id"))

if isinstance(entity_id, str):
entity_id = entity_id.split(",")
entity_id = [e.strip() for e in entity_id.split(',')]
service_data["entity_id"] = entity_id

if entity_id is None:
Expand Down

0 comments on commit 924f516

Please sign in to comment.