'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['timezone'] = self._data.timezone
    if (self._data.alert and self._data.alert_expires_at):
        attrs['expires_at'] = self._data.alert_expires_at
        attrs['state'] = self._data.alert.get('state')
    return attrs
