def no_gps_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    gps_integrated = (sm['peripheralState'].pandaType in (log.PandaState.PandaType.uno, log.PandaState.PandaType.dos))
    return Alert('Poor GPS reception', ('Hardware malfunctioning if sky is visible' if gps_integrated else 'Check GPS antenna placement'), AlertStatus.normal, AlertSize.mid, Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0.2, creation_delay=300.0)
def no_gps_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    gps_integrated = (sm['peripheralState'].pandaType in (log.PandaState.PandaType.uno, log.PandaState.PandaType.dos))
    return Alert('Poor GPS reception', ('Hardware malfunctioning if sky is visible' if gps_integrated else 'Check GPS antenna placement'), AlertStatus.normal, AlertSize.mid, Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0.2, creation_delay=300.0)