    def _handle_coordinator_update(self) -> None:
        """
        Handle updated data from the co-ordinator.

        Any specific things we want to do during an update cycle
        """
        if not self.devreg_init_done and self.device_entry:
            self._device.name_by_user = self.device_entry.name_by_user
            self.devreg_init_done = True
        if self._device.name != self._lastname:
            self._lastname = self._device.name
            if self.device_entry:
                # We have a new name locally, so let's update the device registry.
                self.devreg.async_update_device(self.device_entry.id, name=self._device.name)
        self.async_write_ha_state()
Handle updated data from the co-ordinator.

Any specific things we want to do during an update cycle
custom_components/bermuda/entity.py