Просмотр исходного кода

Fix TypeError: async_update_entry is sync, remove await

ZiB 4 месяцев назад
Родитель
Сommit
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:
           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)