def active_cosfi(self):
    'Get the average of all instantaneous cosfi values.'
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.active_cosfi()
    except RequestException as error:
        _LOGGER.error('Error getting data from Local Smappee unit. (%s)', error)
Get the average of all instantaneous cosfi values.
def active_cosfi(self):
    
    if (not self.is_local_active):
        return
    try:
        return self._localsmappy.active_cosfi()
    except RequestException as error:
        _LOGGER.error('Error getting data from Local Smappee unit. (%s)', error)