From ca39148e97a46d5170c6c3d63045fa351b6a4134 Mon Sep 17 00:00:00 2001 From: Chan Date: Thu, 25 Aug 2022 13:25:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E5=A4=A9=E6=B0=94=E5=9B=BE=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/qweather/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/qweather/weather.py b/custom_components/qweather/weather.py index 17c85e1..e1ebf52 100644 --- a/custom_components/qweather/weather.py +++ b/custom_components/qweather/weather.py @@ -69,8 +69,8 @@ def name(self): @property def condition(self): """Return the current condition.""" - return self._current["text"] - # return CONDITION_MAP.get(self._current.get("icon"), EXCEPTIONAL) +# return self._current["text"] + return CONDITION_MAP.get(self._current.get("icon"), EXCEPTIONAL) async def async_update(self): """获取天气数据"""