mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Avoid having to work out the job type for each entity service at startup (#112557)
This commit is contained in:
@@ -22,6 +22,7 @@ from homeassistant.const import (
|
||||
from homeassistant.core import (
|
||||
Event,
|
||||
HassJob,
|
||||
HassJobType,
|
||||
HomeAssistant,
|
||||
ServiceCall,
|
||||
ServiceResponse,
|
||||
@@ -278,6 +279,7 @@ class EntityComponent(Generic[_EntityT]):
|
||||
),
|
||||
schema,
|
||||
supports_response,
|
||||
job_type=HassJobType.Coroutinefunction,
|
||||
)
|
||||
|
||||
async def async_setup_platform(
|
||||
|
||||
Reference in New Issue
Block a user