    def count_active_devices(self) -> int:
        """
        Returns the number of bluetooth devices that have recent timestamps.

        Useful as a general indicator of health
        """
        stamp = MONOTONIC_TIME() - 10  # seconds
        fresh_count = 0
        for device in self.devices.values():
            if device.last_seen > stamp:
                fresh_count += 1
        return fresh_count
Returns the number of bluetooth devices that have recent timestamps.

Useful as a general indicator of health
custom_components/bermuda/coordinator.py