Skip to content

fix: allow reading addons list for hassio installations only #38

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions custom_components/readme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import json
import os
from shutil import copyfile
from typing import Any, Dict, List
from typing import Any

import homeassistant.helpers.config_validation as cv
import voluptuous as vol
Expand Down Expand Up @@ -198,7 +198,7 @@ def get_hacs_components(hass: HomeAssistant):

@callback
def get_ha_installed_addons(hass: HomeAssistant) -> list[dict[str, Any]]:
if is_hassio(hass):
if not is_hassio(hass):
return []
supervisor_info = get_supervisor_info(hass)

Expand Down