1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Fix device classes in unifiprotect integration (#159281)

Co-authored-by: RaHehl <rahehl@users.noreply.github.com>
This commit is contained in:
Raphael Hehl
2025-12-18 14:43:44 +01:00
committed by GitHub
parent d2672b9ddf
commit 4dd3abb16a
3 changed files with 2 additions and 7 deletions
@@ -453,6 +453,7 @@ EVENT_SENSORS: tuple[ProtectBinaryEventEntityDescription, ...] = (
ProtectBinaryEventEntityDescription(
key="smart_audio_cmonx",
translation_key="co_alarm_detected",
device_class=BinarySensorDeviceClass.CO,
ufp_required_field="can_detect_co",
ufp_enabled="is_co_detection_on",
ufp_event_obj="last_cmonx_detect_event",
@@ -6,7 +6,7 @@ from collections.abc import Sequence
from dataclasses import dataclass
from functools import partial
import logging
from typing import TYPE_CHECKING, Final
from typing import TYPE_CHECKING
from uiprotect.data import ModelType, ProtectAdoptableDeviceModel
@@ -45,9 +45,6 @@ class ProtectButtonEntityDescription(
ufp_press: str | None = None
DEVICE_CLASS_CHIME_BUTTON: Final = "unifiprotect__chime_button"
ALL_DEVICE_BUTTONS: tuple[ProtectButtonEntityDescription, ...] = (
ProtectButtonEntityDescription(
key="reboot",
@@ -84,7 +81,6 @@ CHIME_BUTTONS: tuple[ProtectButtonEntityDescription, ...] = (
ProtectButtonEntityDescription(
key="play",
translation_key="play_chime",
device_class=DEVICE_CLASS_CHIME_BUTTON,
ufp_press="play",
),
ProtectButtonEntityDescription(
@@ -29,8 +29,6 @@ set_chime_paired_doorbells:
selector:
device:
integration: unifiprotect
entity:
device_class: unifiprotect__chime_button
doorbells:
example: "binary_sensor.front_doorbell_doorbell"
required: false