Skip to content

Commit 828e83b

Browse files
authored
Update weather.class.php
1 parent 20212f7 commit 828e83b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/class/weather.class.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)