Don't use hass.helpers (#68393)

pull/68435/head
Paulus Schoutsen 2022-03-19 14:39:32 -07:00 committed by GitHub
parent f1f48475f2
commit a91888a7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)