夜一
发表于 2020-7-2 09:47:56
更新后和风用不了
麻烦大佬们看看
日志详细信息( ERROR )
Logger: homeassistant.components.weather
Source: custom_components/hf_weather/weather.py:392
Integration: Weather (documentation, issues)
First occurred: 上午9:44:26 (1 occurrences)
Last logged: 上午9:44:26
Error while setting up hf_weather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/config/custom_components/hf_weather/weather.py", line 107, in async_setup_platform
yield from data.async_update(dt_util.now())
File "/config/custom_components/hf_weather/weather.py", line 431, in async_update
uv = yield from self.async_uv(session, self._uv_url + self._location)
File "/config/custom_components/hf_weather/weather.py", line 392, in async_uv
time = html.xpath(time_rex).text.split(' ')
IndexError: list index out of range
sigal8075
发表于 2020-7-2 22:01:50
基础学习还是很有必要的呀,好好学习天天向上
xingyue52077
发表于 2020-7-16 20:55:16
拜读拜读,
kai666
发表于 2020-11-17 22:31:38
ghostist 发表于 2019-8-22 15:16
楼主坚持把目录文章完善起来
当初要是有这样的帖子 我也不至于起步撞墙那么多~哈哈哈 ...
和风这个,讲了等于没讲。因为配了一天。连程序都启动不了。拜托楼主的文章能让大家照猫画虎。现在让我们创作,真的不会。
fay000fay
发表于 2020-12-9 09:22:41
我的妈。我像个白痴一样,让朋友给我装了ha之后,傻眼了,这满地文字或视频教程,看的我是一头雾水,到手一天,直接想要放弃了。这天书 一样。还是安心回去用小米全家桶吧。T.T
lion_00
发表于 2020-12-9 11:45:49
感谢楼主分享
kai666
发表于 2020-12-9 18:54:22
大佬,我请教个问题,经纬度怎么整,按照你教程配了整整一天,还报错,能详细点吗?!愁。心态都不好了。
# 配置 configuration.yaml
weather:
- platform: hf_weather
name: test # entity_id,自定义
location: {{YOUR_LOCATION}} # 支持local_ip,根据ip获取,101.21.221.31,指定ip以及22.25,114.1667指定经纬度三种方式。
appkey: {{YOUR_API_KEY}} # api平台申请的key
kai666
发表于 2020-12-9 19:00:53
一直报错,怎么整。Error loading /config/configuration.yaml: invalid key: "OrderedDict([('local_ip', None)])" in "/config/configuration.yaml", line 20, column 0
琛墨
发表于 2020-12-17 16:57:34
收藏一下
一路摸索过来有个大佬指指路真的是太幸福了!
lucktonny
发表于 2020-12-22 19:38:16
怎么配置lovelace。。。。
页:
1
2
3
4
5
6
7
[8]
9
10
11