@@ -78,7 +78,7 class CGSConfiguration(Configuration): | |||
|
78 | 78 | |
|
79 | 79 | route = "http://" + str(ip) + ":" + str(port) + "/status/ad9548" |
|
80 | 80 | try: |
|
81 |
r = requests.get(route,timeout=0. |
|
|
81 | r = requests.get(route,timeout=0.7) | |
|
82 | 82 | except Exception as e: |
|
83 | 83 | self.device.status = 0 |
|
84 | 84 | self.device.save() |
@@ -97,6 +97,7 class CGSConfiguration(Configuration): | |||
|
97 | 97 | # self.device.status = 1 |
|
98 | 98 | #else: |
|
99 | 99 | self.device.status = 1 |
|
100 | return False | |
|
100 | 101 | elif "okay" in icon: |
|
101 | 102 | self.device.status = 3 |
|
102 | 103 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now