Remove unused properties from device/entity registry response (#2130)

- This should fix issues users are seeing where deserialization fails because of an unexpected property type in the response
This commit is contained in:
Joris Pelgröm 2022-01-12 03:29:22 +01:00 committed by GitHub
parent b78c01d18b
commit cb88b659d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 20 deletions

View file

@ -2,17 +2,5 @@ package io.homeassistant.companion.android.common.data.websocket.impl.entities
data class DeviceRegistryResponse(
val areaId: String?,
val configurationUrl: String?,
val configEntries: List<String>,
val connections: List<List<String>>,
val disabledBy: String?,
val entryType: String?,
val id: String,
val identifiers: List<List<String>>,
val manufacturer: String?,
val model: String?,
val nameByUser: String?,
val name: String?,
val swVersion: String?,
val viaDeviceId: String?
val id: String
)

View file

@ -2,12 +2,6 @@ package io.homeassistant.companion.android.common.data.websocket.impl.entities
data class EntityRegistryResponse(
val areaId: String?,
val configEntryId: String?,
val deviceId: String?,
val disabledBy: String?,
val entityCategory: String?,
val entityId: String,
val icon: String?,
val name: String?,
val platform: String
val entityId: String
)