Add reset filter counter button to Renson integration (#103126)

Add reset filter counter button
This commit is contained in:
jimmyd-be 2023-11-01 16:27:23 +01:00 committed by GitHub
parent 66dd3b153d
commit ae02e3f903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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(),
),
) )

View File

@ -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": {