Skip to content

Commit be4945f

Browse files
fix: allow reading addons list for hassio installations only (#38)
Co-authored-by: Joakim Sørensen <[email protected]>
1 parent d8259dc commit be4945f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/readme/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import json
1212
import os
1313
from shutil import copyfile
14-
from typing import Any, Dict, List
14+
from typing import Any
1515

1616
import homeassistant.helpers.config_validation as cv
1717
import voluptuous as vol
@@ -198,7 +198,7 @@ def get_hacs_components(hass: HomeAssistant):
198198

199199
@callback
200200
def get_ha_installed_addons(hass: HomeAssistant) -> list[dict[str, Any]]:
201-
if is_hassio(hass):
201+
if not is_hassio(hass):
202202
return []
203203
supervisor_info = get_supervisor_info(hass)
204204

0 commit comments

Comments
 (0)