From 49ce2938cccb86ff97836a8a841023bd654262bd Mon Sep 17 00:00:00 2001 From: ruixiongwen Date: Wed, 8 Nov 2023 13:18:14 +0800 Subject: [PATCH] fix: door sensor missing value_key for contact - the door sensor status is unknown --- custom_components/terncy/profiles/before_2023_7.py | 1 + custom_components/terncy/profiles/profiles.py | 1 + 2 files changed, 2 insertions(+) diff --git a/custom_components/terncy/profiles/before_2023_7.py b/custom_components/terncy/profiles/before_2023_7.py index 5c41be8..7a4e8be 100644 --- a/custom_components/terncy/profiles/before_2023_7.py +++ b/custom_components/terncy/profiles/before_2023_7.py @@ -120,6 +120,7 @@ TerncyBinarySensorDescription( key="contact", name=None, + value_attr="contact", ), TemperatureDescription(name="Temperature"), BatteryDescription(name="Battery"), diff --git a/custom_components/terncy/profiles/profiles.py b/custom_components/terncy/profiles/profiles.py index ca534c7..18096f9 100644 --- a/custom_components/terncy/profiles/profiles.py +++ b/custom_components/terncy/profiles/profiles.py @@ -128,6 +128,7 @@ TerncyBinarySensorDescription( key="contact", name=None, + value_attr="contact", ), TemperatureDescription(), BatteryDescription(),