瀏覽代碼

Fix TypeError: async_update_entry is sync, remove await

ZiB 4 月之前
父節點
當前提交
48a80c1bd6
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      custom_components/room_cal_ha/config_flow.py

+ 1 - 1
custom_components/room_cal_ha/config_flow.py

@@ -122,7 +122,7 @@ class RoomCalOptionsFlow(OptionsFlow):
         else:
         else:
           new_data[CONF_PASSWORD] = password
           new_data[CONF_PASSWORD] = password
 
 
-      await self.hass.config_entries.async_update_entry(self.config_entry, data=new_data)
+      self.hass.config_entries.async_update_entry(self.config_entry, data=new_data)
       merged = {**self.config_entry.options, **user_input}
       merged = {**self.config_entry.options, **user_input}
       return self.async_create_entry(data=merged)
       return self.async_create_entry(data=merged)