Skip to content

Commit

Permalink
move migrate entry
Browse files Browse the repository at this point in the history
  • Loading branch information
zweckj committed Oct 30, 2023
1 parent 0a53d83 commit cc7e19f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions custom_components/lamarzocco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data[DOMAIN] = {}

return unload_ok

async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if entry.version != 1:
entry.version = 2
return True
5 changes: 0 additions & 5 deletions custom_components/lamarzocco/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ def __init__(self) -> None:
self._config: dict[str, Any] = {}
self._machines: list[str] = []

async def async_migrate_entry(hass: core.HomeAssistant, config_entry: ConfigEntry) -> bool:
if config_entry.version == 1:
config_entry.version = 2
return True

async def async_step_user(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/lamarzocco/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/zweckj/lamarzocco/issues",
"loggers": ["lmcloud"],
"requirements": ["lmcloud==0.4.4b3"],
"requirements": ["lmcloud==0.4.4b4"],
"ssdp": [],
"version": "0.12.4"
}

0 comments on commit cc7e19f

Please sign in to comment.