1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Fix warning (#19946)

* Fix warning

* Update service.py
This commit is contained in:
Paulus Schoutsen 2019-01-11 11:52:07 -08:00 committed by Paulus Schoutsen
parent 0979ce476a
commit 990e7c57f2

View File

@ -204,8 +204,9 @@ async def entity_service_call(hass, platforms, func, call):
if ATTR_ENTITY_ID in call.data:
target_all_entities = call.data[ATTR_ENTITY_ID] == ENTITY_MATCH_ALL
else:
_LOGGER.warning('Not passing an entity ID to a service to target all '
'entities is deprecated. Use instead: entity_id: "*"')
_LOGGER.warning(
'Not passing an entity ID to a service to target all entities is '
'deprecated. Use instead: entity_id: "%s"', ENTITY_MATCH_ALL)
target_all_entities = True
if not target_all_entities: