Procházet zdrojové kódy

Fix TypeError: async_update_entry is sync, remove await

ZiB před 5 měsíci
rodič
revize
48a80c1bd6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)