Add device class support to text sensor (#3599)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
dougiteixeira 2024-02-25 19:29:42 -03:00 committed by GitHub
parent e34ef83ad2
commit 23c23421aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ Configuration variables:
you want the text sensor to use that name, you can set ``name: None``.
- **icon** (*Optional*, icon): Manually set the icon to use for the sensor in the frontend.
- **device_class** (*Optional*, string): The device class for the
sensor. Only the ``timestamp`` and ``date`` device classes are supported.
Set to ``""`` to remove the default device class of a sensor.
Requires Home Assistant 2024.3 or newer.
- **internal** (*Optional*, boolean): Mark this component as internal. Internal components will
not be exposed to the frontend (like Home Assistant). Only specifying an ``id`` without
a ``name`` will implicitly set this to true.