Show the configuration form to edit location data.
(self, user_input)
| 122 | return self.async_show_progress(**show_progress_kwargs) |
| 123 | |
| 124 | async def _show_config_form(self, user_input): |
| 125 | """Show the configuration form to edit location data.""" |
| 126 | |
| 127 | if not user_input: |
| 128 | user_input = {} |
| 129 | |
| 130 | if AwesomeVersion(HAVERSION) < MINIMUM_HA_VERSION: |
| 131 | return self.async_abort( |
| 132 | reason="min_ha_version", |
| 133 | description_placeholders={"version": MINIMUM_HA_VERSION}, |
| 134 | ) |
| 135 | return self.async_show_form( |
| 136 | step_id="user", |
| 137 | data_schema=vol.Schema( |
| 138 | { |
| 139 | vol.Required("acc_logs", default=user_input.get("acc_logs", False)): bool, |
| 140 | vol.Required("acc_addons", default=user_input.get("acc_addons", False)): bool, |
| 141 | vol.Required( |
| 142 | "acc_untested", default=user_input.get("acc_untested", False) |
| 143 | ): bool, |
| 144 | vol.Required("acc_disable", default=user_input.get("acc_disable", False)): bool, |
| 145 | } |
| 146 | ), |
| 147 | errors=self._errors, |
| 148 | ) |
| 149 | |
| 150 | async def async_step_device_done(self, user_input: dict[str, bool] | None = None): |
| 151 | """Handle device steps""" |