'Return the state attributes.'

@property
def device_state_attributes(self):

    if (self._state is not None):
        return {ATTR_ATTRIBUTION: CONF_ATTRIBUTION, ATTR_CHANGE: self.data.price_change, ATTR_OPEN: self.data.price_open, ATTR_PREV_CLOSE: self.data.prev_close}
