|
发表于 2023-7-27 13:32:29
|
显示全部楼层
楼主大神,帮我看一下这个是怎么回事呢,我看设备好像都读取到了,不知道是那里有问题。
Logger: homeassistant.config_entries
Source: util/file.py:70
First occurred: 13:19:04 (2 occurrences)
Last logged: 13:24:17
Error setting up entry Xiaomi: 109923438 for xiaomi_miot
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/file.py", line 67, in write_utf8_file
os.replace(tmp_filename, filename)
OSError: [Errno 22] Invalid argument: '/config/.storage/xiaomi_miot/tmpz4idyx0n' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:deviceutlet:0000A002:chuangmi-212a01:3.json'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/xiaomi_miot/__init__.py", line 235, in async_setup_entry
await async_setup_xiaomi_cloud(hass, config_entry)
File "/config/custom_components/xiaomi_miot/__init__.py", line 298, in async_setup_xiaomi_cloud
hass.data[DOMAIN]['miot_specs'][model] = await MiotSpec.async_from_type(hass, urn)
File "/config/custom_components/xiaomi_miot/core/miot_spec.py", line 329, in async_from_type
await store.async_save(dat)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 276, in _async_handle_write_data
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 287, in _write_data
json_util.save_json(
File "/usr/src/homeassistant/homeassistant/util/json.py", line 68, in save_json
write_utf8_file(filename, json_data, private)
File "/usr/src/homeassistant/homeassistant/util/file.py", line 70, in write_utf8_file
raise WriteError(error) from error
homeassistant.util.file.WriteError: [Errno 22] Invalid argument: '/config/.storage/xiaomi_miot/tmpz4idyx0n' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:deviceutlet:0000A002:chuangmi-212a01:3.json'
|
|