Add scaffold template for backup (#68961)

This commit is contained in:
Joakim Sørensen 2022-03-31 14:18:45 +02:00 committed by GitHub
parent 400943ce99
commit f7c936e842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,10 @@
"""Backup platform for the NEW_NAME integration."""
from homeassistant.core import HomeAssistant
async def async_pre_backup(hass: HomeAssistant) -> None:
"""Perform operations before a backup starts."""
async def async_post_backup(hass: HomeAssistant) -> None:
"""Perform operations after a backup finishes."""