@@ -393,11 +393,6 @@ struct ChargedDeviceDetailView: View {
|
||
| 393 | 393 |
value: "\(chargedDevice.sessionCount)" |
| 394 | 394 |
) |
| 395 | 395 |
|
| 396 |
- if chargedDevice.chargerIdleCurrentAmps == nil {
|
|
| 397 |
- Text("Idle current is missing. Wireless sessions that use this charger can still be recorded, but they cannot learn or auto-apply the wireless stop threshold yet.")
|
|
| 398 |
- .font(.caption2) |
|
| 399 |
- .foregroundColor(.orange) |
|
| 400 |
- } |
|
| 401 | 396 |
} |
| 402 | 397 |
|
| 403 | 398 |
private func standbyPowerCard(_ chargedDevice: ChargedDeviceSummary) -> some View {
|
@@ -1494,14 +1494,7 @@ struct ChargeSessionDetailView: View {
|
||
| 1494 | 1494 |
} |
| 1495 | 1495 |
|
| 1496 | 1496 |
private func sessionWarning(for session: ChargeSessionSummary) -> String? {
|
| 1497 |
- guard session.chargingTransportMode == .wireless, |
|
| 1498 |
- let chargerID = session.chargerID, |
|
| 1499 |
- let charger = appData.chargedDeviceSummary(id: chargerID), |
|
| 1500 |
- charger.chargerIdleCurrentAmps == nil else {
|
|
| 1501 |
- return nil |
|
| 1502 |
- } |
|
| 1503 |
- |
|
| 1504 |
- return "This charger has no idle-current measurement, so the wireless stop threshold cannot be learned or auto-applied for this session." |
|
| 1497 |
+ nil |
|
| 1505 | 1498 |
} |
| 1506 | 1499 |
|
| 1507 | 1500 |
private func wirelessSessionHint(for session: ChargeSessionSummary) -> String? {
|
@@ -237,14 +237,7 @@ struct ChargeSessionCompletionSheetView: View {
|
||
| 237 | 237 |
} |
| 238 | 238 |
|
| 239 | 239 |
private var sessionWarning: String? {
|
| 240 |
- guard let session, |
|
| 241 |
- session.chargingTransportMode == .wireless, |
|
| 242 |
- let chargerID = session.chargerID, |
|
| 243 |
- let charger = appData.chargedDeviceSummary(id: chargerID), |
|
| 244 |
- charger.chargerIdleCurrentAmps == nil else {
|
|
| 245 |
- return nil |
|
| 246 |
- } |
|
| 247 |
- return "This charger has no idle-current measurement, so the final checkpoint will stop the session but will not learn a wireless stop threshold yet." |
|
| 240 |
+ nil |
|
| 248 | 241 |
} |
| 249 | 242 |
|
| 250 | 243 |
private func displayedSessionEnergyWh(for session: ChargeSessionSummary) -> Double {
|
@@ -402,11 +402,6 @@ struct MeterChargeRecordContentView: View {
|
||
| 402 | 402 |
if let charger = selectedCharger {
|
| 403 | 403 |
ChargedDeviceIdentityLabelView(chargedDevice: charger, iconPointSize: 15) |
| 404 | 404 |
.font(.subheadline.weight(.semibold)) |
| 405 |
- if charger.chargerIdleCurrentAmps == nil {
|
|
| 406 |
- Image(systemName: "exclamationmark.triangle.fill") |
|
| 407 |
- .foregroundColor(.orange) |
|
| 408 |
- .font(.caption) |
|
| 409 |
- } |
|
| 410 | 405 |
} else {
|
| 411 | 406 |
Text(availableChargers.isEmpty ? "No chargers available" : "Choose charger") |
| 412 | 407 |
.foregroundColor(.secondary) |