|
小米中枢网关用MI miot auto接入设备,集成显示设置失败,日志如下。新手上路,求问大神如何解决!
Logger: homeassistant.config_entries
Source: util/file.py:70
First occurred: 14:16:22 (2 occurrences)
Last logged: 14:19:08
Error setting up entry Xiaomi: 2232759996 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/tmpt9032v14' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.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 365, 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 322, in async_from_type
await store.async_save(dat)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 278, in _async_handle_write_data
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 289, in _write_data
json_util.save_json(
File "/usr/src/homeassistant/homeassistant/util/json.py", line 94, 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/tmpt9032v14' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json'
Logger: homeassistant.util.file
Source: util/file.py:67
First occurred: 14:16:22 (4 occurrences)
Last logged: 14:19:08
Saving file failed: /config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json
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/tmpmw54edqr' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json'
|
|