1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Add Doorbird events to logbook (#30588)

* Add Doorbird events to logbook

* Add logbook to dependencies
This commit is contained in:
Matt Snyder 2020-01-08 14:27:48 -06:00 committed by Paulus Schoutsen
parent ed6aef2fd7
commit 103d352b1f
2 changed files with 4 additions and 1 deletions

View File

@ -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")

View File

@ -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"]
}