    def _get_device(self, address: str) -> BermudaDevice | None:
        """Search for a device entry based on mac address."""
        mac = format_mac(address).lower()
        # format_mac tries to return a lower-cased, colon-separated mac address.
        # failing that, it returns the original unaltered.
        if mac in self.devices:
            return self.devices[mac]
        return None
Search for a device entry based on mac address.
custom_components/bermuda/coordinator.py