original_docstring: Publishes request for change state message
docstring: Publishes request for change state message
docstring_tokens: Publishes request for change state message
code: def _change_state(self, data):
          """Publishes request for change state message"""
          if self.client:
              
              command = json.dumps({
                  'msg': 'STATE-SET',
                  'time': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()),
                  'mode-reason': 'LAPP',
                  'data': data
              })
  
              self.client.publish(self.device_command, command, 1)
  
              self.state_data = self.state_data_available.get(timeout=5)
code_tokens: def _change_state ( self , data ) : if self . client : command = json . dumps ( { 'msg' : 'STATE-SET' , 'time' : time . strftime ( '%Y-%m-%dT%H:%M:%SZ' , time . gmtime ( ) ) , 'mode-reason' : 'LAPP' , 'data' : data } ) self . client . publish ( self . device_command , command , 1 ) self . state_data = self . state_data_available . get ( timeout = 5 )
short_docstring: Publishes request for change state message
short_docstring_tokens: Publishes request for change state message
comment: """Publishes request for change state message"""