def __init__(self, deviceID, command, routine=False, force=False, source=None, send_event=True, notify=False, speech=False):
from core import sendCommand
self._deviceID = deviceID
self._command = command
self._routine = routine
self._force = force
self._notify = notify
self._source = source
self._speech = speech
self._send_event = send_event
self._simple = not isinstance(
command, types.DictType) if command is not None else False
if self._simple:
self._command = {command: ''}
if self._command is not None:
if self._command.get('isSpeech'):
self._speech = True
self._result = sendCommand(self)
评论列表
文章目录