Skip to content

Commit

Permalink
Merge pull request #189 from elad-bar/fix-initialization-warning
Browse files Browse the repository at this point in the history
fix warning message related to `async_config_entry_first_refresh`
  • Loading branch information
elad-bar authored Nov 27, 2024
2 parents c20d2fa + 1404fc2 commit 43d5295
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.0.5

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

## 2.0.4

- Fix update data when printer goes online [#161](https://github.com/elad-bar/ha-hpprinter/issues/161)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hpprinter/managers/ha_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def initialize(self):

await self._api.initialize()

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

def _load_signal_handlers(self):
loop = self.hass.loop
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hpprinter/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-hpprinter/issues",
"requirements": ["xmltodict~=0.13.0", "flatten_json", "defusedxml"],
"version": "2.0.4"
"version": "2.0.5"
}

0 comments on commit 43d5295

Please sign in to comment.