If no unit is set on setupVars, try to use localstorage value, if exists

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2023-01-27 18:05:52 -03:00
parent 4966f01dde
commit d92df4af4c
2 changed files with 26 additions and 8 deletions

View File

@@ -110,7 +110,8 @@ function getTemperature()
$unit = 'C';
}
} else {
$unit = 'C';
// no value is set in setupVars.conf
$unit = '';
}
return array($celsius, $limit, $unit);