From ba439c773eb1754bebd7c97b6061151301a84ca1 Mon Sep 17 00:00:00 2001 From: jlayec Date: Sat, 23 Mar 2024 12:27:22 +0100 Subject: [PATCH] Update jeedom.py fix response according to documentation https://requests.readthedocs.io/en/latest/api/#requests.Response already fixed a long time ago https://github.com/jeedom/plugin-template/pull/33 --- resources/demond/jeedom/jeedom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/demond/jeedom/jeedom.py b/resources/demond/jeedom/jeedom.py index 52f4a6c..2a7644d 100644 --- a/resources/demond/jeedom/jeedom.py +++ b/resources/demond/jeedom/jeedom.py @@ -135,7 +135,7 @@ def test(self): try: response = requests.get(self.url + '?apikey=' + self.apikey, verify=False) if response.status_code != requests.codes.ok: - logging.error('Callback error: %s %s. Please check your network configuration page', response.status.code, response.status.message) + logging.error('Callback error: %s %s. Please check your network configuration page', response.status_code, response.reason) return False except Exception as e: logging.error('Callback result as a unknown error: %s. Please check your network configuration page', e.message)