custom_components/xiaomi_miot_raw/__init__.py
async def async_added_to_hass(self) -> None:
        """When entity is added to hass."""
        if UPDATE_BETA_FLAG and self.coordinator:
            self.async_on_remove(
                self.coordinator.async_add_listener(self._handle_coordinator_update)
            )
When entity is added to hass.
When entity is added to hass.
When entity is added to hass .
async def async_added_to_hass(self) -> None:
        if UPDATE_BETA_FLAG and self.coordinator:
            self.async_on_remove(
                self.coordinator.async_add_listener(self._handle_coordinator_update)
            )
async def async_added_to_hass ( self ) -> None : if UPDATE_BETA_FLAG and self . coordinator : self . async_on_remove ( self . coordinator . async_add_listener ( self . _handle_coordinator_update ) )
When entity is added to hass.
When entity is added to hass .
"""When entity is added to hass."""
self