From 5594e42aec22847fcce2eef08ca2240db43bea29 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 10 Mar 2021 13:21:23 -1000 Subject: [PATCH] Document that `icon` should not be set when `device_class` is set. (#844) --- docs/core/entity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/entity.md b/docs/core/entity.md index c114af38..ed35d444 100644 --- a/docs/core/entity.md +++ b/docs/core/entity.md @@ -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