112遇到这个问题 "Failed to update load power: The device storage is full"
我是spmini3设置成spmini2.插件要获取功率,但是获取不到就出现这个问题了.
目前解决方案:
1. 官方插件放入custom_components
注掉更新方法的功率获取(本身就没这功能)
async def async_update(self):
"""Update the state of the device."""
try:
self._state = await self.device.async_request(self.device.api.check_power)
except BroadlinkException as err_msg:
_LOGGER.error("Failed to update state: %s", err_msg)
return
# try:
# self._load_power = await self.device.async_request(
# self.device.api.get_energy
# )
except CommandNotSupportedError:
return
# except BroadlinkException as err_msg:
# _LOGGER.error("Failed to update load power: %s", err_msg)
2. 直接关闭broadlink的日志输出,眼不见心不烦
logger:
default: info
logs:
homeassistant.components.broadlink: critical # 考出来
homeassistant.components.switch: critical # 或者直接全局
|