mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00

* add sensor platform to backup integration * adjust namings, remove system integration flag * add first simple test * apply review comments * fix test * add sensor tests * adjustements to use backup helper * remove obsolet async_get_manager from init * unsubscribe from events on entry unload * add configuration_url * fix doc string * fix sensor tests * mark async_unsubscribe as callback * set integration_type service * extend sensor test * set integration_type on correct integration :) * fix after online conflict resolution * add sensor update tests * simplify the sensor update tests * avoid io during tests * Add comment --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
22 lines
562 B
Python
22 lines
562 B
Python
"""Config flow for Home Assistant Backup integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
|
|
|
from .const import DOMAIN
|
|
|
|
|
|
class BackupConfigFlow(ConfigFlow, domain=DOMAIN):
|
|
"""Handle a config flow for Home Assistant Backup."""
|
|
|
|
VERSION = 1
|
|
|
|
async def async_step_system(
|
|
self, user_input: dict[str, Any] | None = None
|
|
) -> ConfigFlowResult:
|
|
"""Handle the initial step."""
|
|
return self.async_create_entry(title="Backup", data={})
|