forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test the google tasks api connection in setup (home-assistant#132657)
Improve google tasks setup
- Loading branch information
1 parent
77debcb
commit 355e80a
Showing
6 changed files
with
115 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Types for the Google Tasks integration.""" | ||
|
||
from dataclasses import dataclass | ||
from typing import Any | ||
|
||
from homeassistant.config_entries import ConfigEntry | ||
|
||
from .api import AsyncConfigEntryAuth | ||
|
||
|
||
@dataclass | ||
class GoogleTasksData: | ||
"""Class to hold Google Tasks data.""" | ||
|
||
api: AsyncConfigEntryAuth | ||
task_lists: list[dict[str, Any]] | ||
|
||
|
||
type GoogleTasksConfigEntry = ConfigEntry[GoogleTasksData] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters