mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fix binary sensor at Home Connect (#128234)
This commit is contained in:
parent
8236a9529f
commit
b5a6bb74ce
@ -41,20 +41,19 @@ REFRIGERATION_DOOR_BOOLEAN_MAP = {
|
||||
class HomeConnectBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
"""Entity Description class for binary sensors."""
|
||||
|
||||
device_class: BinarySensorDeviceClass | None = BinarySensorDeviceClass.DOOR
|
||||
boolean_map: dict[str, bool] | None = None
|
||||
|
||||
|
||||
BINARY_SENSORS = (
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key=BSH_REMOTE_CONTROL_ACTIVATION_STATE,
|
||||
translation_key="remote_control",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key=BSH_REMOTE_START_ALLOWANCE_STATE,
|
||||
translation_key="remote_start",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key="BSH.Common.Status.LocalControlActive",
|
||||
translation_key="local_control",
|
||||
),
|
||||
@ -76,15 +75,15 @@ BINARY_SENSORS = (
|
||||
},
|
||||
translation_key="charging_connection",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key="ConsumerProducts.CleaningRobot.Status.DustBoxInserted",
|
||||
translation_key="dust_box_inserted",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key="ConsumerProducts.CleaningRobot.Status.Lifted",
|
||||
translation_key="lifted",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
HomeConnectBinarySensorEntityDescription(
|
||||
key="ConsumerProducts.CleaningRobot.Status.Lost",
|
||||
translation_key="lost",
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user