'Return the state attributes.'

@property
def device_state_attributes(self):

    attrs = {}
    attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
    attrs['device_id'] = self._data.id
    attrs['firmware'] = self._data.firmware
    attrs['kind'] = self._data.kind
    attrs['timezone'] = self._data.timezone
    attrs['type'] = self._data.family
    if (self._extra and self._sensor_type.startswith('last_')):
        attrs['created_at'] = self._extra['created_at']
        attrs['answered'] = self._extra['answered']
        attrs['recording_status'] = self._extra['recording']['status']
        attrs['category'] = self._extra['kind']
    return attrs
