File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -746,6 +746,19 @@ public function postUpdate() {
746746 $ weatherCmd ->setDisplay ('generic_type ' , 'WEATHER_TEMPERATURE_MAX_ ' . $ i );
747747 $ weatherCmd ->save ();
748748
749+ $ weatherCmd = $ this ->getCmd (null , 'condition_ ' . $ i );
750+ if (!is_object ($ weatherCmd )) {
751+ $ weatherCmd = new weatherCmd ();
752+ }
753+ $ weatherCmd ->setName (__ ('Condition ' , __FILE__ ) . ' + ' . $ i );
754+ $ weatherCmd ->setLogicalId ('condition_ ' . $ i );
755+ $ weatherCmd ->setEqLogic_id ($ this ->getId ());
756+ $ weatherCmd ->setUnite ('' );
757+ $ weatherCmd ->setType ('info ' );
758+ $ weatherCmd ->setSubType ('numeric ' );
759+ $ weatherCmd ->setDisplay ('generic_type ' , 'WEATHER_CONDITION_ ' . $ i );
760+ $ weatherCmd ->save ();
761+
749762 $ weatherCmd = $ this ->getCmd (null , 'condition_id_ ' . $ i );
750763 if (!is_object ($ weatherCmd )) {
751764 $ weatherCmd = new weatherCmd ();
You can’t perform that action at this time.
0 commit comments