mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add reset filter counter button to Renson integration (#103126)
Add reset filter counter button
This commit is contained in:
parent
66dd3b153d
commit
ae02e3f903
@ -48,6 +48,12 @@ ENTITY_DESCRIPTIONS: tuple[RensonButtonEntityDescription, ...] = (
|
|||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
action_fn=lambda api: api.restart_device(),
|
action_fn=lambda api: api.restart_device(),
|
||||||
),
|
),
|
||||||
|
RensonButtonEntityDescription(
|
||||||
|
key="reset_filter",
|
||||||
|
translation_key="reset_filter",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
action_fn=lambda api: api.reset_filter(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
"button": {
|
"button": {
|
||||||
"sync_time": {
|
"sync_time": {
|
||||||
"name": "Sync time with device"
|
"name": "Sync time with device"
|
||||||
|
},
|
||||||
|
"reset_filter": {
|
||||||
|
"name": "Reset filter counter"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"number": {
|
"number": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user