Skip to content

Commit

Permalink
don't create persistent notification and just issue warning on versio…
Browse files Browse the repository at this point in the history
…n mismatch
  • Loading branch information
dgomes committed Feb 25, 2024
1 parent dcc4875 commit 78fec08
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions custom_components/openhasp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,7 @@ async def statusupdate_message_received(msg):

major, minor, _ = message["version"].split(".")
if (major, minor) != (MAJOR, MINOR):
self.hass.components.persistent_notification.create(
f"You require firmware version {MAJOR}.{MINOR}.x \
in plate {self._entry.data[CONF_NAME]} \
for this component to work properly.\
<br>Some features will simply not work!",
title="openHASP Firmware mismatch",
notification_id="openhasp_firmware_notification",
)
_LOGGER.error(
_LOGGER.warning(
"%s firmware mismatch %s <> %s",
self._entry.data[CONF_NAME],
(major, minor),
Expand Down

0 comments on commit 78fec08

Please sign in to comment.