'Execute state command for return value.'

@staticmethod
def _query_state_value(command):

    _LOGGER.info('Running    state    command:    %s', command)
    try:
        return_value = subprocess.check_output(command, shell=True)
        return return_value.strip().decode('utf-8')
    except subprocess.CalledProcessError:
        _LOGGER.error('Command    failed:    %s', command)
