Skip to content

Commit

Permalink
Merge pull request #2494
Browse files Browse the repository at this point in the history
* Fix sensor setting type converter
  • Loading branch information
jpelgrom authored Apr 30, 2022
1 parent 883b949 commit b78d83e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class EntriesTypeConverter {
class SensorSettingTypeConverter {
@TypeConverter
fun fromStringToEnum(value: String): SensorSettingType {
return enumValues<SensorSettingType>().find { it.string === value }
return enumValues<SensorSettingType>().find { it.string == value }
?: SensorSettingType.STRING
}

Expand Down

0 comments on commit b78d83e

Please sign in to comment.