async def async_added_to_hass(self):
    'Call when entity is added.'
    self.async_on_remove(self.options.listen(EVENT_VALUE_CHANGED, self._value_changed))
    self.async_on_remove(self.options.listen(EVENT_INSTANCE_STATUS_CHANGED, self._instance_updated))
    self.async_on_remove(async_dispatcher_connect(self.hass, const.SIGNAL_DELETE_ENTITY, self._delete_callback))
    self.async_on_remove(async_dispatcher_connect(self.hass, f'{DOMAIN}_{self.values.values_id}_value_added', self._value_added))
Call when entity is added.
async def async_added_to_hass(self):
    
    self.async_on_remove(self.options.listen(EVENT_VALUE_CHANGED, self._value_changed))
    self.async_on_remove(self.options.listen(EVENT_INSTANCE_STATUS_CHANGED, self._instance_updated))
    self.async_on_remove(async_dispatcher_connect(self.hass, const.SIGNAL_DELETE_ENTITY, self._delete_callback))
    self.async_on_remove(async_dispatcher_connect(self.hass, f'{DOMAIN}_{self.values.values_id}_value_added', self._value_added))