Home Assistant Unofficial Reference 2024.12.1
homeassistant.core.Service Class Reference

Public Member Functions

None __init__ (self, Callable[[ServiceCall], Coroutine[Any, Any, ServiceResponse|EntityServiceResponse]|ServiceResponse|EntityServiceResponse|None,] func, VolSchemaType|None schema, str domain, str service, Context|None context=None, SupportsResponse supports_response=SupportsResponse.NONE, HassJobType|None job_type=None)
 

Public Attributes

 job
 
 schema
 
 supports_response
 

Static Private Attributes

 __slots__
 

Detailed Description

Representation of a callable service.

Definition at line 2414 of file core.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.core.Service.__init__ (   self,
Callable[ [ServiceCall], Coroutine[Any, Any, ServiceResponse | EntityServiceResponse] | ServiceResponse | EntityServiceResponse | None, ]  func,
VolSchemaType | None  schema,
str  domain,
str  service,
Context | None   context = None,
SupportsResponse   supports_response = SupportsResponse.NONE,
HassJobType | None   job_type = None 
)
Initialize a service.

Definition at line 2419 of file core.py.

Member Data Documentation

◆ __slots__

homeassistant.core.Service.__slots__
staticprivate

Definition at line 2417 of file core.py.

◆ job

homeassistant.core.Service.job

Definition at line 2436 of file core.py.

◆ schema

homeassistant.core.Service.schema

Definition at line 2437 of file core.py.

◆ supports_response

homeassistant.core.Service.supports_response

Definition at line 2438 of file core.py.


The documentation for this class was generated from the following file: