Ver Fonte

Fix TypeError: async_update_entry is sync, remove await

ZiB há 5 meses atrás
pai
commit
48a80c1bd6
1 ficheiros alterados com 1 adições e 1 exclusões
  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)