Skip to content

Commit

Permalink
Replace persistent notification with warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
nbogojevic committed Jan 26, 2024
1 parent b562d92 commit 0426951
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions custom_components/midea_dehumidifier_lan/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,7 @@ def _notify_setup_errors(self):
if not self.coordinators:
raise ConfigEntryNotReady(str(self.errors))
for unique_id, error in self.errors.items():
self.hass.components.persistent_notification.async_create(
title=NAME,
message=(
f"{error}.\n\n"
f"Device may be offline or unreachable, trying again later."
),
notification_id=f"midea_error_{unique_id}",
)
_LOGGER.warning("Device may be offline or unreachable, trying again later. %s", error)

async def _process_appliance(
self, device: dict[str, Any]
Expand Down

0 comments on commit 0426951

Please sign in to comment.