Skip to content

Commit

Permalink
Remove suspend from timeline functoin declaration.
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Pelgröm <[email protected]>
  • Loading branch information
Martreides and jpelgrom authored Feb 7, 2025
1 parent 6a5d959 commit f475379
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ThermostatTile : TileService() {
serviceScope.cancel()
}

private suspend fun timeline(tileConfig: ThermostatTile, entity: Entity<Map<String, Any>>, targetTemperature: Float?, temperatureUnit: String): Timeline =
private fun timeline(tileConfig: ThermostatTile, entity: Entity<Map<String, Any>>, targetTemperature: Float?, temperatureUnit: String): Timeline =
Timeline.fromLayoutElement(
LayoutElementBuilders.Box.Builder().apply {
val currentTemperature = entity.attributes["current_temperature"]
Expand Down

0 comments on commit f475379

Please sign in to comment.