mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Don't use hass.helpers (#68393)
This commit is contained in:
parent
f1f48475f2
commit
a91888a7f8
@ -201,8 +201,8 @@ class EntityComponent:
|
|||||||
|
|
||||||
async def handle_service(call: ServiceCall) -> None:
|
async def handle_service(call: ServiceCall) -> None:
|
||||||
"""Handle the service."""
|
"""Handle the service."""
|
||||||
await self.hass.helpers.service.entity_service_call(
|
await service.entity_service_call(
|
||||||
self._platforms.values(), func, call, required_features
|
self.hass, self._platforms.values(), func, call, required_features
|
||||||
)
|
)
|
||||||
|
|
||||||
self.hass.services.async_register(self.domain, name, handle_service, schema)
|
self.hass.services.async_register(self.domain, name, handle_service, schema)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user