mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 10:26:30 +00:00
Document that icon
should not be set when device_class
is set. (#844)
This commit is contained in:
parent
88c92e88ea
commit
5594e42aec
@ -80,7 +80,7 @@ The following properties are also available on entities. However, they are for a
|
||||
| Name | Type | Default | Description |
|
||||
| ------------------------------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| force_update | boolean | `False` | Write each update to the state machine, even if the data is the same. Example use: when you are directly reading the value from a connected sensor instead of a cache. Use with caution, will spam the state machine. |
|
||||
| icon | icon | `None` | Icon to use in the frontend. Icons start with `mdi:` plus an [identifier](https://materialdesignicons.com/). You probably don't need this since Home Assistant already provides default icons for all devices. |
|
||||
| icon | icon | `None` | Icon to use in the frontend. Icons start with `mdi:` plus an [identifier](https://materialdesignicons.com/). `icon` and `device_class` are mutually exclusive; Do not set an `icon` if a `device_class` is present. You probably don't need this since Home Assistant already provides default icons for all devices. |
|
||||
| entity_registry_enabled_default | boolean | `True` | Indicate if the entity should be enabled or disabled when it is first added to the entity registry. |
|
||||
|
||||
## System properties
|
||||
|
Loading…
x
Reference in New Issue
Block a user