    def extra_state_attributes(self) -> Mapping[str, Any]:
        """Return extra state attributes for this device."""
        _scannername = self._device.area_scanner.name if self._device.area_scanner else None
        return {"scanner": _scannername, "area": self._device.area_name}
Return extra state attributes for this device.
custom_components/bermuda/device_tracker.py