File tree Expand file tree Collapse file tree 2 files changed +3
-36
lines changed
app/src/test/kotlin/io/homeassistant/companion/android/widgets/todo
common/src/androidTest/kotlin/io/homeassistant/companion/android Expand file tree Collapse file tree 2 files changed +3
-36
lines changed Original file line number Diff line number Diff line change 11package io.homeassistant.companion.android.widgets.todo
22
33import io.homeassistant.companion.android.common.data.integration.Entity
4- import java.util.Calendar
4+ import java.time.LocalDateTime
55
66internal fun fakeServerEntity (entityId : String , friendlyName : String? = null): Entity {
77 return Entity (
88 entityId = entityId,
99 state = " " ,
1010 attributes = if (friendlyName != null ) mapOf (" friendly_name" to friendlyName) else emptyMap(),
11- lastChanged = Calendar .getInstance (),
12- lastUpdated = Calendar .getInstance (),
11+ lastChanged = LocalDateTime .now (),
12+ lastUpdated = LocalDateTime .now (),
1313 )
1414}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments