Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [1.2.4] - 2026-03-16

### Fixed
- **`OptionsFlowHandler` no longer raises `AttributeError` on reconfiguration**: Removed the `__init__` method from `OptionsFlowHandler` that tried to set `self.config_entry = config_entry`. In newer versions of Home Assistant, `config_entry` is a read-only property on `OptionsFlow` and is automatically injected by the framework. The `async_get_options_flow` method now returns `OptionsFlowHandler()` without passing `config_entry` manually.

## [1.2.3] - 2026-03-15

### Fixed
Expand Down
6 changes: 1 addition & 5 deletions custom_components/usgs_earthquakes_feed/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def async_get_options_flow(
config_entry: config_entries.ConfigEntry,
) -> OptionsFlowHandler:
"""Get the options flow for this handler."""
return OptionsFlowHandler(config_entry)
return OptionsFlowHandler()

async def async_step_user(
self,
Expand Down Expand Up @@ -85,10 +85,6 @@ async def async_step_user(
class OptionsFlowHandler(config_entries.OptionsFlow):
"""Handle options flow for USGS Quakes."""

def __init__(self, config_entry: config_entries.ConfigEntry) -> None:
"""Initialize options flow."""
self.config_entry = config_entry

async def async_step_init(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/usgs_earthquakes_feed/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"aio-geojson-usgs-earthquakes==0.3",
"aio-geojson-client==0.12"
],
"version": "1.2.3"
"version": "1.2.4"
}
Loading