Skip to content

Commit

Permalink
allow removing sensors from favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Sroga committed May 20, 2020
1 parent 1430c34 commit 5534fbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SwitchesViewModel(application: Application) : AndroidViewModel(application
}

fun removeFavorite(switch: LhComponent) {
if (switch is LhDevice) { //TODO create fav list for LhGroupScene and for LhSensor
if (switch is LhAbstractDevice) { //TODO create fav list for LhGroupScene and for LhSensor
viewModelScope.launch {
favoriteDao.delete(FavoriteSwitch(switch.id))
}
Expand Down

0 comments on commit 5534fbd

Please sign in to comment.