command.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:Firefly 作者: Firefly-Automation 项目源码 文件源码
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)
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号