You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A text entity is an entity that allows the user to input a text value to an integration. Derive entity platforms from [`homeassistant.components.text.TextEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/text/__init__.py)
7
+
8
+
## Properties
9
+
10
+
:::tip
11
+
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data or build a mechanism to push state updates to the entity class instance.
12
+
:::
13
+
14
+
| Name | Type | Default | Description
15
+
| ---- | ---- | ------- | -----------
16
+
| mode | string | `text` | Defines how the text should be displayed in the UI. Can be `text` or `password`.
17
+
| native_max | int | 100 | The maximum number of characters in the text value (inclusive).
18
+
| native_min | int | 0 | The minimum number of characters in the text value (inclusive).
19
+
| pattern | str | `None` | A regex pattern that the text value must match to be valid.
20
+
| native_value | str | **Required** | The value of the text.
21
+
22
+
Other properties that are common to all entities such as `icon`, `name` etc are also applicable.
0 commit comments