Skip to content

Commit 7fc5464

Browse files
agnersballoob
authored andcommitted
Add storage link to low disk space repair issue (home-assistant#157786)
Co-authored-by: Paulus Schoutsen <[email protected]>
1 parent a00b50c commit 7fc5464

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

homeassistant/components/hassio/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
ISSUE_KEY_ADDON_DETACHED_ADDON_REMOVED: HELP_URLS,
162162
ISSUE_KEY_SYSTEM_FREE_SPACE: {
163163
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
164+
"storage_url": "/config/storage",
164165
},
165166
ISSUE_KEY_ADDON_PWNED: {
166167
"more_info_pwned": "https://www.home-assistant.io/more-info/pwned-passwords",

homeassistant/components/hassio/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"title": "Restart(s) required"
131131
},
132132
"issue_system_free_space": {
133-
"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.",
133+
"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.",
134134
"title": "Data disk is running low on free space"
135135
},
136136
"issue_system_multiple_data_disks": {

tests/components/hassio/test_issues.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ async def test_supervisor_issues_free_space(
10411041
fixable=False,
10421042
placeholders={
10431043
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
1044+
"storage_url": "/config/storage",
10441045
"free_space": "1.6",
10451046
},
10461047
)
@@ -1090,6 +1091,7 @@ async def test_supervisor_issues_free_space_host_info_fail(
10901091
fixable=False,
10911092
placeholders={
10921093
"more_info_free_space": "https://www.home-assistant.io/more-info/free-space",
1094+
"storage_url": "/config/storage",
10931095
"free_space": "<2",
10941096
},
10951097
)

0 commit comments

Comments
 (0)