Add support for event type closed to integration folder_watcher (#48226)

pull/49017/head
dynasticorpheus 2021-04-10 17:04:43 +02:00 committed by GitHub
parent fcf86e59cc
commit 7ef17bf175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -92,6 +92,10 @@ def create_event_handler(patterns, hass):
"""File deleted."""
self.process(event)
def on_closed(self, event):
"""File closed."""
self.process(event)
return EventHandler(patterns, hass)

View File

@ -2,7 +2,7 @@
"domain": "folder_watcher",
"name": "Folder Watcher",
"documentation": "https://www.home-assistant.io/integrations/folder_watcher",
"requirements": ["watchdog==1.0.2"],
"requirements": ["watchdog==2.0.2"],
"codeowners": [],
"quality_scale": "internal"
}

View File

@ -2305,7 +2305,7 @@ wakeonlan==2.0.0
waqiasync==1.0.0
# homeassistant.components.folder_watcher
watchdog==1.0.2
watchdog==2.0.2
# homeassistant.components.waterfurnace
waterfurnace==1.1.0

View File

@ -1214,7 +1214,7 @@ vultr==0.1.2
wakeonlan==2.0.0
# homeassistant.components.folder_watcher
watchdog==1.0.2
watchdog==2.0.2
# homeassistant.components.wiffi
wiffi==1.0.1