diff --git a/README.md b/README.md index eb8c28e..88bdcab 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ It allows you: - Entered area - Exited area - Additional tracked - - Most tracked flights + - Most tracked flights (You may disable it via configuration) ### Configuration - Add to track diff --git a/custom_components/flightradar24/config_flow.py b/custom_components/flightradar24/config_flow.py index b51431b..7f78615 100644 --- a/custom_components/flightradar24/config_flow.py +++ b/custom_components/flightradar24/config_flow.py @@ -82,7 +82,7 @@ async def async_step_init(self, user_input: dict[str, Any] | None = None) -> Flo errors['base'] = str(error) if not errors: - self.config_entry.data = user_input + self.hass.config_entries.async_update_entry(self.config_entry, data=user_input) return self.async_create_entry(title=DEFAULT_NAME, data=user_input) data_schema = vol.Schema({ diff --git a/custom_components/flightradar24/manifest.json b/custom_components/flightradar24/manifest.json index 3ecaad6..493fa69 100644 --- a/custom_components/flightradar24/manifest.json +++ b/custom_components/flightradar24/manifest.json @@ -7,5 +7,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/AlexandrErohin/home-assistant-flightradar24/issues", "requirements": ["FlightRadarAPI==1.3.25", "pycountry==23.12.11"], - "version": "1.9.0" + "version": "1.9.1" } \ No newline at end of file