mirror of
https://github.com/home-assistant/core.git
synced 2026-05-05 04:14:32 +02:00
Add Reolink audio noise reduction number entity (#155757)
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
@@ -223,6 +223,12 @@
|
||||
"0": "mdi:volume-off"
|
||||
}
|
||||
},
|
||||
"audio_noise_reduction": {
|
||||
"default": "mdi:volume-vibrate",
|
||||
"state": {
|
||||
"0": "mdi:volume-variant-off"
|
||||
}
|
||||
},
|
||||
"auto_quick_reply_time": {
|
||||
"default": "mdi:message-reply-text-outline"
|
||||
},
|
||||
|
||||
@@ -227,6 +227,19 @@ NUMBER_ENTITIES = (
|
||||
value=lambda api, ch: api.volume_doorbell(ch),
|
||||
method=lambda api, ch, value: api.set_volume(ch, volume_doorbell=int(value)),
|
||||
),
|
||||
ReolinkNumberEntityDescription(
|
||||
key="audio_noise_reduction",
|
||||
cmd_key="439",
|
||||
translation_key="audio_noise_reduction",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
entity_registry_enabled_default=False,
|
||||
native_step=1,
|
||||
native_min_value=0,
|
||||
native_max_value=5,
|
||||
supported=lambda api, ch: api.supported(ch, "noise_reduction"),
|
||||
value=lambda api, ch: api.baichuan.audio_noise_reduction(ch),
|
||||
method=lambda api, ch, value: api.baichuan.SetAudioNoise(ch, int(value)),
|
||||
),
|
||||
ReolinkNumberEntityDescription(
|
||||
key="guard_return_time",
|
||||
cmd_key="GetPtzGuard",
|
||||
|
||||
@@ -445,6 +445,9 @@
|
||||
"alarm_volume": {
|
||||
"name": "Alarm volume"
|
||||
},
|
||||
"audio_noise_reduction": {
|
||||
"name": "Audio noise reduction"
|
||||
},
|
||||
"auto_quick_reply_time": {
|
||||
"name": "Auto quick reply time"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user