Skip to content

Add sensors description for Google Drive#41728

Merged
silamon merged 8 commits intohome-assistant:nextfrom
mik-laj:patch-11
Dec 28, 2025
Merged

Add sensors description for Google Drive#41728
silamon merged 8 commits intohome-assistant:nextfrom
mik-laj:patch-11

Conversation

@mik-laj
Copy link
Copy Markdown
Contributor

@mik-laj mik-laj commented Nov 10, 2025

Added sensors and automation examples for Google Drive integration.

Proposed change

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Added sensors and automation examples for Google Drive integration.
@home-assistant home-assistant Bot added in-progress This PR/Issue is currently being worked on needs-rebase The PR has been branched of the wrong base branch or targets an incorrect target branch next This PR goes into the next branch labels Nov 10, 2025
@home-assistant
Copy link
Copy Markdown

It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the current branch. Please change the target branch of this PR to current and rebase if needed. If this is documentation for a new feature, please add a link to that PR in your description.

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 10, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 4aad867
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/694e9432bd2b710008624883
😎 Deploy Preview https://deploy-preview-41728--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mik-laj mik-laj marked this pull request as ready for review November 10, 2025 22:59
@mik-laj mik-laj requested a review from tronikos as a code owner November 10, 2025 22:59
Copilot AI review requested due to automatic review settings November 10, 2025 22:59
@home-assistant home-assistant Bot removed the needs-rebase The PR has been branched of the wrong base branch or targets an incorrect target branch label Nov 10, 2025
@home-assistant home-assistant Bot added the has-parent This PR has a parent PR in another repo label Nov 10, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the Google Drive integration documentation by adding sensor descriptions and an automation example. The changes help users understand what data they can monitor and how to automate alerts for storage limits.

  • Adds backticks to format "Home Assistant" as code when referring to the folder name
  • Documents four sensors that track Google Drive storage metrics
  • Provides an automation example for alerting when storage is near capacity

Comment thread source/_integrations/google_drive.markdown Outdated
Comment thread source/_integrations/google_drive.markdown Outdated
Comment thread source/_integrations/google_drive.markdown Outdated
Comment thread source/_integrations/google_drive.markdown Outdated
mik-laj and others added 4 commits November 11, 2025 00:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@home-assistant home-assistant Bot added the parent-merged The parent PR has been merged already label Dec 25, 2025

{% include integrations/google_oauth.md %}

## Sensors
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this to match submitted code

@home-assistant home-assistant Bot marked this pull request as draft December 25, 2025 05:25
@home-assistant
Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.

Comment thread source/_integrations/google_drive.markdown
Comment on lines +48 to +49
- **Used storage in Drive**: The usage by all files in Google Drive. (disabled by default)
- **Used storage in Drive Trash**: The usage by trashed files in Google Drive. (disabled by default)
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parenthetical statements should be formatted differently. Instead of using parentheses like "(disabled by default)", this should be formatted as a remark or separate note. Consider rephrasing to "This entity is disabled by default." or using a different structure.

Copilot generated this review using guidance from repository custom instructions.
- **Used storage in Drive Trash**: The usage by trashed files in Google Drive. (disabled by default)
- **Total size of backups**: The sum of the size of all backups for the current Home Assistant's installation.

For users that are part of an organization with pooled storage, information about the available storage and used storage across all services is for the organization, rather than the individual user.
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a trailing space at the end of this line that should be removed.

Suggested change
For users that are part of an organization with pooled storage, information about the available storage and used storage across all services is for the organization, rather than the individual user.
For users that are part of an organization with pooled storage, information about the available storage and used storage across all services is for the organization, rather than the individual user.

Copilot uses AI. Check for mistakes.
Comment thread source/_integrations/google_drive.markdown

For users that are part of an organization with pooled storage, information about the available storage and used storage across all services is for the organization, rather than the individual user.

## Automations
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section title "Automations" should use "Automation examples" or "Examples" instead. The word "Automations" as a standalone section title doesn't follow the recommended integration page structure. Consider using "Examples" as this is the standard section name for automation examples in integration documentation.

Copilot generated this review using guidance from repository custom instructions.
Updated the Google Drive integration documentation with additional details and examples.
@tronikos tronikos marked this pull request as ready for review December 26, 2025 17:33
@home-assistant home-assistant Bot requested a review from tronikos December 26, 2025 17:33
@silamon silamon merged commit 8a5fcc0 into home-assistant:next Dec 28, 2025
7 checks passed
@home-assistant home-assistant Bot removed in-progress This PR/Issue is currently being worked on parent-merged The parent PR has been merged already labels Dec 28, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

has-parent This PR has a parent PR in another repo next This PR goes into the next branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants