Skip to content

Commit

Permalink
fix warning message related to async_config_entry_first_refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed Nov 27, 2024
1 parent cc9678c commit c811d1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.9

- Initialize data using `async_request_refresh` instead of `async_config_entry_first_refresh` to remove warning message

## 2.1.8

- Fix blocking call on startup
Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/managers/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def initialize(self):

_LOGGER.info(f"Start loading {DOMAIN} integration, Entry ID: {entry.entry_id}")

await self.async_config_entry_first_refresh()
await self.async_request_refresh()

await self._api.initialize()

Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-edgeos/issues",
"requirements": ["aiohttp"],
"version": "2.1.8"
"version": "2.1.9"
}

0 comments on commit c811d1e

Please sign in to comment.