From 07459098235e3caffee5ca8fcb2faae3099501b1 Mon Sep 17 00:00:00 2001 From: Patrick Schmidt Date: Thu, 25 May 2023 15:19:03 +0100 Subject: [PATCH] Increased fcm Client timeout 1 -> 5 --- mobileraker_fcm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobileraker_fcm.py b/mobileraker_fcm.py index 56ab884..347aa01 100644 --- a/mobileraker_fcm.py +++ b/mobileraker_fcm.py @@ -25,7 +25,7 @@ def push(self, request: FcmRequestDto,) -> Optional[requests.Response]: f"Sending to firebase fcm ({self.fcm_uri}): {jsons}") try: res = requests.post( - f'{self.fcm_uri}/companion/v2/update', json=jsons, timeout=1) + f'{self.fcm_uri}/companion/v2/update', json=jsons, timeout=5) res.raise_for_status() return res except requests.exceptions.ConnectionError as err: