Get all entity reg categories (#15581)

This commit is contained in:
Bram Kragten 2023-02-24 14:33:31 +01:00 committed by GitHub
parent 682f383c9e
commit 01ec9aaf96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -197,9 +197,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
area_id: entity.ai,
translation_key: entity.tk,
platform: entity.pl,
entity_category: entity.ec
? entityReg.entity_categories[entity.ec]
: undefined,
entity_category:
entity.ec !== undefined
? entityReg.entity_categories[entity.ec]
: undefined,
name: entity.en,
hidden: entity.hb,
display_precision: entity.dp,