async def async_added_to_hass(self) -> None:
        """Register callbacks and load initial data."""
        if isinstance(self._data_point, CallbackDataPoint):
            self._unregister_callbacks.append(
                self._data_point.register_data_point_updated_callback(
                    cb=self._async_hub_entity_updated,
                    custom_id=self.entity_id,
                )
            )
            self._unregister_callbacks.append(
                self._data_point.register_device_removed_callback(cb=self._async_hub_device_removed)
            )
Register callbacks and load initial data.
custom_components/homematicip_local/generic_entity.py