def active_power(self):
    'Get sum of all instantaneous active power values from local hub.'
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.active_power()
    except RequestException as error:
        _LOGGER.error('Error getting data from Local Smappee unit. (%s)', error)
Get sum of all instantaneous active power values from local hub.
def active_power(self):
    
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.active_power()
    except RequestException as error:
        _LOGGER.error('Error getting data from Local Smappee unit. (%s)', error)