Consistent properties info for all entities (#1012)

This commit is contained in:
Jaroslav Hanslík 2021-08-03 13:56:04 +02:00 committed by GitHub
parent c11d90613f
commit aa7ff2ea3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -7,7 +7,9 @@ A humidifier entity is a device whose main purpose is to control humidity, i.e.
## Properties
> Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::tip
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::
| Name | Type | Default | Description |
| ----------------------- | ------ | ------------------------------------------------- | ----------------------------------------------------------------------------------------- |

View File

@ -7,7 +7,9 @@ A `number` is an entity that allows the user to input an arbitrary value to an i
## Properties
> Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::tip
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::
| Name | Type | Default | Description
| ---- | ---- | ------- | -----------

View File

@ -10,7 +10,9 @@ For example, a bulb can have user selectable light effects. While that could be
## Properties
> Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::tip
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::
| Name | Type | Default | Description
| ---- | ---- | ------- | -----------

View File

@ -7,7 +7,9 @@ A siren entity is a device whose main purpose is to control siren devices like a
## Properties
> 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.
:::tip
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.
:::
| Name | Type | Default | Description |
| ----------------------- | ------ | ------------------------------------- | --------------------------------------------------------------------------------------- |