'Return the state attributes.'

@property
def device_state_attributes(self):

    attrs = self._cfg_expand('device_state_attributes', {})
    for (attr, callback) in attrs.items():
        try:
            attrs[attr] = callback(self.rest)
        except TypeError:
            attrs[attr] = callback
        except (KeyError, IndexError) as err:
            _LOGGER.warning('Failed    to    parse    response    from    WU    API:    %s', err)
    attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
    attrs[ATTR_FRIENDLY_NAME] = self._cfg_expand('friendly_name')
    return attrs
