File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ bool DriverNetHomeAssistant::powerOnOff(bool isOn)
8282 if (response.error ())
8383 {
8484 this ->setInError (response.error () ? response.getErrorReason () : " Unknown" );
85- setupRetry (1500 );
85+ setupRetry (5000 );
8686 return false ;
8787 }
8888
@@ -152,7 +152,14 @@ int DriverNetHomeAssistant::write(const std::vector<ColorRgb>& ledValues)
152152 doc.setObject (row);
153153 QString message (doc.toJson (QJsonDocument::Compact));
154154 _restApi->setBasePath (" /api/services/light/turn_on" );
155- _restApi->post (message);
155+ auto response = _restApi->post (message);
156+
157+ if (response.error ())
158+ {
159+ this ->setInError (response.error () ? response.getErrorReason () : " Unknown" );
160+ setupRetry (5000 );
161+ return false ;
162+ }
156163 }
157164
158165 return 0 ;
@@ -167,7 +174,7 @@ bool DriverNetHomeAssistant::saveStates()
167174 if (response.error ())
168175 {
169176 this ->setInError (response.error () ? response.getErrorReason () : " Unknown" );
170- setupRetry (1500 );
177+ setupRetry (5000 );
171178 return false ;
172179 }
173180 auto body = response.getBody ();
Original file line number Diff line number Diff line change 5454 "lamps" : {
5555 "type" : " array" ,
5656 "title" :" edt_dev_spec_lights_title" ,
57- "propertyOrder" : 6 ,
57+ "propertyOrder" : 7 ,
5858 "uniqueItems" : true ,
5959 "items" : {
6060 "type" : " object" ,
You can’t perform that action at this time.
0 commit comments