Fixing Ktlin LInt.

This commit is contained in:
Diego Valenzuela 2023-04-29 11:48:54 -07:00
parent 6b33cd727a
commit 975eaf1ab2
2 changed files with 62 additions and 63 deletions

View file

@ -34,7 +34,7 @@ class EntityGridVehicleScreen(
carContext: CarContext,
val integrationRepository: IntegrationRepository,
val title: String,
val entitiesFlow: Flow<List<Entity<*>>>,
val entitiesFlow: Flow<List<Entity<*>>>
) : Screen(carContext) {
companion object {
@ -66,7 +66,6 @@ class EntityGridVehicleScreen(
.setTitle(entity.friendlyName)
.setText(entity.friendlyState(carContext))
if (entity.isExecuting()) {
gridItem.setLoading(entity.isExecuting())
} else {

View file

@ -643,4 +643,4 @@ fun <T> Entity<T>.friendlyState(context: Context): String {
return friendlyState
}
fun <T> Entity<T>.isExecuting()= state.endsWith("ing")
fun <T> Entity<T>.isExecuting() = state.endsWith("ing")