'Return the state attributes of the sensor.'

@property
def device_state_attributes(self):

    return {ATTR_ENTITY_ID: self._entity_id, ATTR_SENSOR_VALUE: self.sensor_value, ATTR_THRESHOLD: self._threshold, ATTR_TYPE: (CONF_UPPER if self.is_upper else CONF_LOWER)}
