Skip to content

Commit c870331

Browse files
committed
Update lint baseline
1 parent 3ec4d99 commit c870331

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

common/lint-baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
119119
<location
120120
file="src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt"
121-
line="370"
121+
line="421"
122122
column="9"/>
123123
</issue>
124124

common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ class SensorUpdater @VisibleForTesting internal constructor(
251251
registerSensor(fullSensor, basicSensor)
252252
fullSensor =
253253
fullSensor.copy(sensor = persistRegistration(sensor.copy(registered = sensor.enabled)))
254+
} catch (e: CancellationException) {
255+
throw e
254256
} catch (e: Exception) {
255257
Timber.e(e, "Issue registering sensor ${basicSensor.id}")
256258
}

0 commit comments

Comments
 (0)