Add scaffold template for backup (#68961)
This commit is contained in:
parent
400943ce99
commit
f7c936e842
3 changed files with 34 additions and 2 deletions
10
script/scaffold/templates/backup/integration/backup.py
Normal file
10
script/scaffold/templates/backup/integration/backup.py
Normal 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."""
|
Loading…
Add table
Add a link
Reference in a new issue