From 534649811706ef8614d201cd755d23fc4ad01e90 Mon Sep 17 00:00:00 2001 From: Alone Date: Tue, 3 Dec 2024 15:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B6=EF=B8=8F=20fix=20for=20unreadable?= =?UTF-8?q?=20entity=20(#1992)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/hass_entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/hass_entity.py b/custom_components/xiaomi_miot/core/hass_entity.py index dd23c12c1..f7976935f 100644 --- a/custom_components/xiaomi_miot/core/hass_entity.py +++ b/custom_components/xiaomi_miot/core/hass_entity.py @@ -75,7 +75,7 @@ def __init__(self, device: 'Device', conv: 'BaseConv'): self._attr_translation_key = conv.prop.friendly_name self._miot_service = conv.prop.service self._miot_property = conv.prop - if not conv.prop.readable(): + if not conv.prop.readable: self._attr_available = True elif isinstance(conv, MiotActionConv):