Set battery entity categories to 'diagnostic' to hide them from the main view

This commit is contained in:
Adrian Jagielak
2025-07-24 20:57:05 +02:00
parent 7fb4a35a41
commit 8dfd40a5d7
33 changed files with 328 additions and 418 deletions

View File

@@ -13,6 +13,17 @@ export interface BinarySensorComponent {
*/
platform: 'binary_sensor';
/**
* The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity.
* When set, the entity category must be `diagnostic` for sensors.
*/
entity_category?: string;
/**
* Picture URL for the entity.
*/
entity_picture?: string;
/**
* An ID that uniquely identifies this sensor.
* If two sensors have the same unique ID, Home Assistant will raise an exception.
@@ -103,17 +114,6 @@ export interface BinarySensorComponent {
*/
qos?: number;
/**
* The [category](https://developers.home-assistant.io/docs/core/entity/#generic-properties) of the entity.
* When set, the entity category must be `diagnostic` for sensors.
*/
entity_category?: string;
/**
* Picture URL for the entity.
*/
entity_picture?: string;
/**
* [Icon](https://www.home-assistant.io/docs/configuration/customizing-devices/#icon) for the entity.
*/