mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Remove custom device_class from unifiprotect doorbell_text select entity (#159366)
Co-authored-by: RaHehl <rahehl@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@ from collections.abc import Callable, Sequence
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Final
|
from typing import Any
|
||||||
|
|
||||||
from uiprotect.api import ProtectApiClient
|
from uiprotect.api import ProtectApiClient
|
||||||
from uiprotect.data import (
|
from uiprotect.data import (
|
||||||
@@ -102,8 +102,6 @@ DEVICE_RECORDING_MODES = [
|
|||||||
{"id": mode.value, "name": mode.value.title()} for mode in list(RecordingMode)
|
{"id": mode.value, "name": mode.value.title()} for mode in list(RecordingMode)
|
||||||
]
|
]
|
||||||
|
|
||||||
DEVICE_CLASS_LCD_MESSAGE: Final = "unifiprotect__lcd_message"
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class ProtectSelectEntityDescription(
|
class ProtectSelectEntityDescription(
|
||||||
@@ -217,7 +215,6 @@ CAMERA_SELECTS: tuple[ProtectSelectEntityDescription, ...] = (
|
|||||||
key="doorbell_text",
|
key="doorbell_text",
|
||||||
translation_key="doorbell_text",
|
translation_key="doorbell_text",
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
device_class=DEVICE_CLASS_LCD_MESSAGE,
|
|
||||||
ufp_required_field="feature_flags.has_lcd_screen",
|
ufp_required_field="feature_flags.has_lcd_screen",
|
||||||
ufp_value_fn=_get_doorbell_current,
|
ufp_value_fn=_get_doorbell_current,
|
||||||
ufp_options_fn=_get_doorbell_options,
|
ufp_options_fn=_get_doorbell_options,
|
||||||
|
|||||||
Reference in New Issue
Block a user