1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

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
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."""