def call_service(self, domain, service, service_data=None):
Fires event to call specified service.
event_data = service_data or {}event_data[ATTR_DOMAIN] = domain
event_data[ATTR_SERVICE] = service
self.bus.fire(EVENT_CALL_SERVICE, event_data)
After Change
"hass.services.call is deprecated. "
"Use hass.services.call"))
self.services.call(domain, service, service_data)
def _process_match_param(parameter):
Wraps parameter in a list if it is not one and returns it.