@staticmethod
    def _query_state_code(command):
        _LOGGER.info('Running state command: %s', command)
        return subprocess.call(command, shell=True) == 0
Execute state command for return code.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/command_line.py/CommandSwitch._query_state_code