Improve error logging for protected topic subscription in ntfy integration (#152244)

This commit is contained in:
Manu
2025-09-14 09:02:48 +02:00
committed by GitHub
parent d93e0a105a
commit 0fb6bbee59

View File

@@ -106,7 +106,10 @@ class NtfyEventEntity(NtfyBaseEntity, EventEntity):
return
except NtfyForbiddenError:
if self._attr_available:
_LOGGER.error("Failed to subscribe to topic. Topic is protected")
_LOGGER.error(
"Failed to subscribe to topic %s. Topic is protected",
self.topic,
)
self._attr_available = False
ir.async_create_issue(
self.hass,