Skip to content

Commit

Permalink
Add reset filter counter button to Renson integration (home-assistant…
Browse files Browse the repository at this point in the history
…#103126)

Add reset filter counter button
  • Loading branch information
jimmyd-be authored Nov 1, 2023
1 parent 66dd3b1 commit ae02e3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions homeassistant/components/renson/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class RensonButtonEntityDescription(
entity_category=EntityCategory.CONFIG,
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(),
),
)


Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/renson/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"button": {
"sync_time": {
"name": "Sync time with device"
},
"reset_filter": {
"name": "Reset filter counter"
}
},
"number": {
Expand Down

0 comments on commit ae02e3f

Please sign in to comment.