From a91888a7f81e1bf467395891764eab25913a98d3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 19 Mar 2022 14:39:32 -0700 Subject: [PATCH] Don't use hass.helpers (#68393) --- homeassistant/helpers/entity_component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index a1dba0d6962..1cef123b292 100644 --- a/homeassistant/helpers/entity_component.py +++ b/homeassistant/helpers/entity_component.py @@ -201,8 +201,8 @@ class EntityComponent: async def handle_service(call: ServiceCall) -> None: """Handle the service.""" - await self.hass.helpers.service.entity_service_call( - self._platforms.values(), func, call, required_features + await service.entity_service_call( + self.hass, self._platforms.values(), func, call, required_features ) self.hass.services.async_register(self.domain, name, handle_service, schema)