Move EntityCategory to homeassistant.const (#87792)

* Move EntityCategory to homeassistant.const

* Fix more imports
This commit is contained in:
Erik Montnemery 2023-02-09 20:15:37 +01:00 committed by GitHub
parent abf0c87e40
commit cc564026fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
456 changed files with 644 additions and 632 deletions

View file

@ -1162,3 +1162,19 @@ CAST_APP_ID_HOMEASSISTANT_LOVELACE: Final = "A078F6B0"
HASSIO_USER_NAME = "Supervisor"
SIGNAL_BOOTSTRAP_INTEGRATIONS = "bootstrap_integrations"
class EntityCategory(StrEnum):
"""Category of an entity.
An entity with a category will:
- Not be exposed to cloud, Alexa, or Google Assistant components
- Not be included in indirect service calls to devices or areas
"""
# Config: An entity which allows changing the configuration of a device.
CONFIG = "config"
# Diagnostic: An entity exposing some configuration parameter,
# or diagnostics of a device.
DIAGNOSTIC = "diagnostic"