Allow setting an entity's name by its device class (#90767)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Erik Montnemery 2023-05-09 18:55:55 +02:00 committed by GitHub
parent 337b59ba23
commit 67c1051305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 141 additions and 35 deletions

View file

@ -172,6 +172,8 @@ class _TemplateAttribute:
class TemplateEntity(Entity):
"""Entity that uses templates to calculate attributes."""
_attr_name: str | None
_attr_available = True
_attr_entity_picture = None
_attr_icon = None