Ensure Notion device name is stored as a string (#57670)

pull/57694/head
Aaron Bach 2021-10-14 12:21:44 -06:00 committed by GitHub
parent 8ef8838801
commit 681b5c48e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class NotionEntity(CoordinatorEntity):
"identifiers": {(DOMAIN, sensor["hardware_id"])}, "identifiers": {(DOMAIN, sensor["hardware_id"])},
"manufacturer": "Silicon Labs", "manufacturer": "Silicon Labs",
"model": sensor["hardware_revision"], "model": sensor["hardware_revision"],
"name": sensor["name"], "name": str(sensor["name"]),
"sw_version": sensor["firmware_version"], "sw_version": sensor["firmware_version"],
"via_device": (DOMAIN, bridge.get("hardware_id")), "via_device": (DOMAIN, bridge.get("hardware_id")),
} }