mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Migrate UniFi Protect translations (#83338)
* Migrate UniFi Protect translations * Move key
This commit is contained in:
parent
e918adb25d
commit
171bed7637
@ -55,7 +55,6 @@ from .utils import async_dispatch_id as _ufpd, async_get_light_motion_current
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
OBJECT_TYPE_NONE = "none"
|
||||
DEVICE_CLASS_DETECTION = "unifiprotect__detection"
|
||||
DEVICE_CLASS_LICENSE_PLATE = "unifiprotect__license_plate"
|
||||
|
||||
|
||||
@dataclass
|
||||
@ -534,11 +533,11 @@ EVENT_SENSORS: tuple[ProtectSensorEventEntityDescription, ...] = (
|
||||
key="smart_obj_licenseplate",
|
||||
name="License Plate Detected",
|
||||
icon="mdi:car",
|
||||
device_class=DEVICE_CLASS_LICENSE_PLATE,
|
||||
translation_key="license_plate",
|
||||
ufp_smart_type=SmartDetectObjectType.LICENSE_PLATE,
|
||||
ufp_value="is_smart_detected",
|
||||
ufp_required_field="can_detect_license_plate",
|
||||
ufp_event_obj="last_smart_detect_event",
|
||||
ufp_smart_type=SmartDetectObjectType.LICENSE_PLATE,
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -80,5 +80,14 @@
|
||||
"title": "Smart Detection Sensor Deprecated",
|
||||
"description": "The unified \"Detected Object\" sensor for smart detections is now deprecated. It has been replaced with individual smart detection binary sensors for each smart detection type. Please update any templates or automations accordingly."
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"license_plate": {
|
||||
"state": {
|
||||
"none": "Clear"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"state": {
|
||||
"unifiprotect__license_plate": {
|
||||
"none": "Clear"
|
||||
}
|
||||
}
|
||||
}
|
@ -41,6 +41,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"license_plate": {
|
||||
"state": {
|
||||
"none": "Clear"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"issues": {
|
||||
"deprecate_smart_sensor": {
|
||||
"description": "The unified \"Detected Object\" sensor for smart detections is now deprecated. It has been replaced with individual smart detection binary sensors for each smart detection type. Please update any templates or automations accordingly.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user