HOMEKIT中设备无响应了,Supervisors有设置失败提示!

很长时间稳定运行,没做任何升级操作
各种错误大概图片如下:
EJS0}HPVA@88AOFP3(@QAU
0@T4ZYC



不知和手机更新IOS16.4后HOMKIT做了更新有关,其他啥也没动,重启了下依旧,请大神解惑!

进入 hassio_supervisor 容器

sudo docker exec -it hassio_supervisor bash

备份原始文件

cp /usr/src/supervisor/supervisor/api/os.py /usr/src/supervisor/supervisor/api/os.py.bak

使用 sed 命令注释掉目标行

sed -i ‘s/ATTR_DATA_DISK: self.sys_os.datadisk.disk_used_id/# ATTR_DATA_DISK: self.sys_os.datadisk.disk_used_id/g’ /usr/src/supervisor/supervisor/api/os.py

退出容器

exit

docker restart hassio_supervisor
docker restart homeasistant

我的supervisor不知道为啥更新了之后也出现这种问题。之前好好的现在homekit用不了了。
错误日志在这里
Logger: homeassistant.config_entries
Source: components/hassio/handler.py:472
First occurred: 11:56:50 (1 occurrences)
Last logged: 11:56:50

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 625, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 215, in async_config_entry_first_refresh
await self._async_refresh(
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 933, in _async_refresh
await self.hassio.refresh_updates()
File “/usr/src/homeassistant/homeassistant/components/hassio/handler.py”, line 35, in _wrapper
data = await funct(*argv, **kwargs)
File “/usr/src/homeassistant/homeassistant/components/hassio/handler.py”, line 472, in send_command
request = await self.websession.request(
File “/usr/local/lib/python3.10/site-packages/aiohttp/client.py”, line 560, in _request
await resp.start(conn)
File “/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py”, line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File “/usr/local/lib/python3.10/site-packages/aiohttp/streams.py”, line 616, in read
await self._waiter
asyncio.exceptions.CancelledError



这段代码在ssh里面提示无效命令怎么办。。。。

使用 sed 命令注释掉目标行

sed -i ‘s/ATTR_DATA_DISK: self.sys_os.datadisk.disk_used_id/# ATTR_DATA_DISK: self.sys_os.datadisk.disk_used_id/g’ /usr/src/supervisor/supervisor/api/os.py