Add device class support to text sensor (#3599)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
e34ef83ad2
commit
23c23421aa
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue