synology/api.py
def home_mode_status(self, **kwargs):
        """Returns the status of Home Mode"""
        api = self._api_info['home_mode']
        payload = dict({
            'api': api['name'],
            'method': 'GetInfo',
            'version': api['version'],
            '_sid': self._sid
        }, **kwargs)
        response = self._get_json_with_retry(api['url'], payload)

        return response['data']['on']
def home_mode_status(self, **kwargs):
        api = self._api_info['home_mode']
        payload = dict({
            'api': api['name'],
            'method': 'GetInfo',
            'version': api['version'],
            '_sid': self._sid
        }, **kwargs)
        response = self._get_json_with_retry(api['url'], payload)

        return response['data']['on']
def home_mode_status ( self , * * kwargs ) : api = self . _api_info [ 'home_mode' ] payload = dict ( { 'api' : api [ 'name' ] , 'method' : 'GetInfo' , 'version' : api [ 'version' ] , '_sid' : self . _sid } , * * kwargs ) response = self . _get_json_with_retry ( api [ 'url' ] , payload ) return response [ 'data' ] [ 'on' ]
Returns the status of Home Mode
Returns the status of Home Mode