feat: Adds thermal balance point, still need to implement economic balance point.

This commit is contained in:
2025-03-04 12:46:44 -05:00
parent d22beb9375
commit 6c31a9db09
11 changed files with 362 additions and 40 deletions

View File

@@ -112,13 +112,16 @@ extension ViewController: DependencyKey {
case let .heatingBalancePoint(route):
switch route {
case let .index(mode: mode, heatLossMode: heatLossMode):
return request.respond(HeatingBalancePointForm(mode: mode, heatLossMode: heatLossMode, response: nil))
return request.respond(HeatingBalancePointForm(
mode: mode,
heatLossMode: heatLossMode,
response: nil
))
case let .heatLossFields(mode: mode):
logger.debug("Heat loss mode: \(mode)")
return HeatingBalancePointForm.HeatLossFields(mode: mode)
case .submit:
// FIX:
fatalError()
case let .submit(request):
let response = try await request.respond(logger: logger)
return HeatingBalancePointResponse(response: response)
}
case let .hvacSystemPerformance(route):