def get_switches(self):
    'Get switches from local Smappee.'
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.load_command_control_config()
    except RequestException as error:
        _LOGGER.error('Error getting switches from local Smappee. (%s)', error)
Get switches from local Smappee.
def get_switches(self):
    
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.load_command_control_config()
    except RequestException as error:
        _LOGGER.error('Error getting switches from local Smappee. (%s)', error)