    def make_name(self):
        """
        Refreshes self.name and returns it, based on naming preferences.

        Will prefer the friendly names sent by bluetooth advert, but will fall back
        to manufacturer name and bluetooth address.
        """
        _newname = (
            self.name_by_user
            or self.name_devreg
            or self.name_bt_local_name
            or self.name_bt_serviceinfo
            or self.beacon_unique_id
        )

        if _newname is not None:
            self.name = _newname
        else:
            # Couldn't find anything nice, we'll have to use the address.
            if self.manufacturer:
                _prefix = f"{slugify(self.manufacturer)}"
            else:
                _prefix = DOMAIN
            self.name = f"{_prefix}_{slugify(self.address)}"

        return self.name
Refreshes self.name and returns it, based on naming preferences.

Will prefer the friendly names sent by bluetooth advert, but will fall back
to manufacturer name and bluetooth address.
custom_components/bermuda/bermuda_device.py