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:
parent
6a4955e7c0
commit
7068a39af7
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user