示例#1
0
 def _handle_service(service):
     """Handle service call."""
     index = service.data.get(ATTR_VEHICLE_INDEX)
     command = service.data.get(ATTR_COMMAND)
     try:
         motorparts.remote_command(session, command, index)
     except motorparts.MoparError as error:
         _LOGGER.error(str(error))
示例#2
0
 def _handle_service(service):
     """Handle service call."""
     index = service.data.get(ATTR_VEHICLE_INDEX)
     command = service.data.get(ATTR_COMMAND)
     try:
         motorparts.remote_command(session, command, index)
     except motorparts.MoparError as error:
         _LOGGER.error(str(error))