-
-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Remove auto target all entity when using a blank service call #25715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -252,13 +252,8 @@ async def entity_service_call( | |
| else: | ||
| # Remove the service_name parameter along with this warning | ||
| _LOGGER.warning( | ||
| "Not passing an entity ID to a service to target all " | ||
| "entities is deprecated. Update your call to %s to be " | ||
| "instead: entity_id: %s", | ||
| service_name, | ||
| ENTITY_MATCH_ALL, | ||
| ) | ||
| target_all_entities = True | ||
| 'Not passing an entity ID to a service to target all ' | ||
| 'entities is not supported.', service_name, ENTITY_MATCH_ALL) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment above this logging statement mentions that the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still want a warning? or should I drop the warning all together. |
||
|
|
||
| if not target_all_entities: | ||
| # A set of entities we're trying to target. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bug. you now check if
data_ent_idis a valid subscring ofENTITY_MATCH_ALL