From ae02e3f9030cf633568cab474b000a16698d6e1e Mon Sep 17 00:00:00 2001 From: jimmyd-be <34766203+jimmyd-be@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:27:23 +0100 Subject: [PATCH] Add reset filter counter button to Renson integration (#103126) Add reset filter counter button --- homeassistant/components/renson/button.py | 6 ++++++ homeassistant/components/renson/strings.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/homeassistant/components/renson/button.py b/homeassistant/components/renson/button.py index 53d995ba792..a91a057e0e7 100644 --- a/homeassistant/components/renson/button.py +++ b/homeassistant/components/renson/button.py @@ -48,6 +48,12 @@ ENTITY_DESCRIPTIONS: tuple[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(), + ), ) diff --git a/homeassistant/components/renson/strings.json b/homeassistant/components/renson/strings.json index 7099cdf2c45..d6d03ed1c44 100644 --- a/homeassistant/components/renson/strings.json +++ b/homeassistant/components/renson/strings.json @@ -16,6 +16,9 @@ "button": { "sync_time": { "name": "Sync time with device" + }, + "reset_filter": { + "name": "Reset filter counter" } }, "number": {