Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions homeassistant/components/hassio/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
ISSUE_KEY_ADDON_DETACHED_ADDON_REMOVED: HELP_URLS,
ISSUE_KEY_SYSTEM_FREE_SPACE: {
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
"storage_url": "/config/storage",
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The tests for the free space issue need to be updated to include the new storage_url placeholder. The tests in test_supervisor_issues_free_space and test_supervisor_issues_free_space_host_info_fail currently verify placeholders but don't include storage_url. The placeholders dict should include:

placeholders={
    "more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
    "storage_url": "/config/storage",
    "free_space": "1.6",  # or "<2" depending on the test
}

Copilot uses AI. Check for mistakes.
},
ISSUE_KEY_ADDON_PWNED: {
"more_info_pwned": "https://www.home-assistant.io/more-info/pwned-passwords",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/hassio/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"title": "Restart(s) required"
},
"issue_system_free_space": {
"description": "The data disk has only {free_space}GB free space left. This may cause issues with system stability and interfere with functionality such as backups and updates. See [clear up storage]({more_info_free_space}) for tips on how to free up space.",
"description": "The data disk has only {free_space}GB free space left. This may cause issues with system stability and interfere with functionality such as backups and updates. Go to [storage]({storage_url}) to see what is taking up space or see [clear up storage]({more_info_free_space}) for tips on how to free up space.",
"title": "Data disk is running low on free space"
},
"issue_system_multiple_data_disks": {
Expand Down
2 changes: 2 additions & 0 deletions tests/components/hassio/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ async def test_supervisor_issues_free_space(
fixable=False,
placeholders={
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
"storage_url": "/config/storage",
"free_space": "1.6",
},
)
Expand Down Expand Up @@ -1090,6 +1091,7 @@ async def test_supervisor_issues_free_space_host_info_fail(
fixable=False,
placeholders={
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
"storage_url": "/config/storage",
"free_space": "<2",
},
)
Expand Down
Loading