Add Doorbird events to logbook (#30588)
* Add Doorbird events to logbook * Add logbook to dependencies
This commit is contained in:
parent
ed6aef2fd7
commit
103d352b1f
2 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ from doorbirdpy import DoorBird
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.components.logbook import log_entry
|
||||
from homeassistant.const import (
|
||||
CONF_DEVICES,
|
||||
CONF_HOST,
|
||||
|
@ -296,4 +297,6 @@ class DoorBirdRequestView(HomeAssistantView):
|
|||
|
||||
hass.bus.async_fire(f"{DOMAIN}_{event}", event_data)
|
||||
|
||||
log_entry(hass, "Doorbird {}".format(event), "event was fired.", DOMAIN)
|
||||
|
||||
return web.Response(status=200, text="OK")
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"name": "DoorBird",
|
||||
"documentation": "https://www.home-assistant.io/integrations/doorbird",
|
||||
"requirements": ["doorbirdpy==2.0.8"],
|
||||
"dependencies": ["http"],
|
||||
"dependencies": ["http", "logbook"],
|
||||
"codeowners": ["@oblogic7"]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue