Răsfoiți Sursa

Fix TypeError: async_update_entry is sync, remove await

ZiB 5 luni în urmă
părinte
comite
48a80c1bd6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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:
           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}
       return self.async_create_entry(data=merged)