mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add entity categories for appropriate Notion entities (#58105)
This commit is contained in:
parent
745e42621b
commit
03b1150115
@ -16,6 +16,7 @@ from homeassistant.components.binary_sensor import (
|
||||
BinarySensorEntityDescription,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
@ -56,6 +57,7 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
||||
key=SENSOR_BATTERY,
|
||||
name="Low Battery",
|
||||
device_class=DEVICE_CLASS_BATTERY,
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
on_state="critical",
|
||||
),
|
||||
NotionBinarySensorDescription(
|
||||
@ -80,6 +82,7 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
||||
key=SENSOR_MISSING,
|
||||
name="Missing",
|
||||
device_class=DEVICE_CLASS_CONNECTIVITY,
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
on_state="not_missing",
|
||||
),
|
||||
NotionBinarySensorDescription(
|
||||
|
Loading…
x
Reference in New Issue
Block a user