Skip to content

Commit

Permalink
feat: 修复实时天气图标问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan committed Aug 25, 2022
1 parent 347654a commit ca39148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/qweather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""获取天气数据"""
Expand Down

0 comments on commit ca39148

Please sign in to comment.