1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed profiles failing to heat when no HDD or CDD

This commit is contained in:
Jon Ziebell 2021-03-03 21:18:52 -05:00
parent 6a4955e7c0
commit 7068a39af7

View File

@ -943,7 +943,10 @@ class profile extends cora\api {
}
// Runtime per degree day
if($profile['degree_days']['heat'] !== null) {
if(
$profile['degree_days']['heat'] !== null &&
$profile['degree_days']['heat'] > 0
) {
if(
$system_type_heat !== null &&
$system_type_heat !== 'none'
@ -955,7 +958,10 @@ class profile extends cora\api {
}
}
if($profile['degree_days']['cool'] !== null) {
if(
$profile['degree_days']['cool'] !== null &&
$profile['degree_days']['cool'] > 0
) {
if(
$system_type_cool !== null &&
$system_type_cool !== 'none'