From 99c2e4ac44e6decd263b752e5adb835f17180f18 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 11 Jan 2019 11:52:07 -0800 Subject: [PATCH] Fix warning (#19946) * Fix warning * Update service.py --- homeassistant/helpers/service.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/service.py b/homeassistant/helpers/service.py index 66488fbec3d..2b7638b55ee 100644 --- a/homeassistant/helpers/service.py +++ b/homeassistant/helpers/service.py @@ -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: