mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Ensure Toon webhook ID isn't registered on re-registration (#38376)
This commit is contained in:
parent
ad0560ef37
commit
ecf22198c5
@ -71,6 +71,9 @@ class ToonDataUpdateCoordinator(DataUpdateCoordinator[Status]):
|
|||||||
self.entry.data[CONF_WEBHOOK_ID]
|
self.entry.data[CONF_WEBHOOK_ID]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Ensure the webhook is not registered already
|
||||||
|
webhook_unregister(self.hass, self.entry.data[CONF_WEBHOOK_ID])
|
||||||
|
|
||||||
webhook_register(
|
webhook_register(
|
||||||
self.hass,
|
self.hass,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user