-
-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Add Edit Sheet service to Google Sheets #79149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a516474
Add options flow to Google Sheets
tkdrob 5ed30c5
Merge branch 'dev' of https://github.com/home-assistant/core into goo…
tkdrob 176e9fb
use backported str enum
tkdrob ebce9f5
lint
tkdrob baa4960
update options on setup
tkdrob c21ccdd
uno mas
tkdrob 7bae9fa
Merge branch 'dev' into google_sheets_options
tkdrob 23d3438
Merge branch 'dev' of https://github.com/home-assistant/core into goo…
tkdrob 6e58565
Merge branch 'google_sheets_options' of https://github.com/tkdrob/cor…
tkdrob 3701025
fix websocket_resolve_media
mib1185 69f665d
Merge branch 'mib1185/media_source/fix-websocket_resolve_media' of ht…
tkdrob fe9e1d6
uno mas
tkdrob 3720f53
Merge branch 'dev' into google_sheets_options
tkdrob 187c8be
ruff
tkdrob 7c5e1ec
Merge branch 'dev' into google_sheets_options
tkdrob dfb207c
Merge branch 'dev' of https://github.com/home-assistant/core into goo…
tkdrob e7c83f4
clarify access settings
tkdrob 8b5e2db
Merge branch 'dev' of https://github.com/home-assistant/core into goo…
tkdrob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,29 @@ | ||
| """Constants for Google Sheets integration.""" | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Final | ||
|
|
||
| from homeassistant.backports.enum import StrEnum | ||
|
|
||
| DOMAIN = "google_sheets" | ||
|
|
||
| CONF_SHEETS_ACCESS = "sheets_access" | ||
| DATA = "data" | ||
| DATA_CONFIG_ENTRY: Final = "config_entry" | ||
| DEFAULT_NAME = "Google Sheets" | ||
| DEFAULT_ACCESS = "https://www.googleapis.com/auth/drive.file" | ||
| DOCUMENT_ID = "document_id" | ||
| WORKSHEET = "worksheet" | ||
|
|
||
| SERVICE_APPEND_SHEET = "append_sheet" | ||
| SERVICE_EDIT_SHEET = "edit_sheet" | ||
|
|
||
|
|
||
| class FeatureAccess(StrEnum): | ||
| """Class to represent different access scopes.""" | ||
|
|
||
| read_write = "https://www.googleapis.com/auth/spreadsheets" | ||
| read_only = "https://www.googleapis.com/auth/spreadsheets.readonly" | ||
| file = "https://www.googleapis.com/auth/drive.file" | ||
|
|
||
|
|
||
| DEFAULT_ACCESS = [FeatureAccess.file, FeatureAccess.read_only] | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please make this a
Finalconstant?