'Returns devices with previous timestamps that do not match new.
If a device did not have a timestamp previously, it will not be
returned because this means it is new.'

@staticmethod
def _get_devices_locally_modified(timestamps, previous_timestamps):

    return {device for (device, timestamp) in timestamps.items() if (previous_timestamps.get(device) and (timestamp != previous_timestamps.get(device)))}
