This commit is contained in:
Striker72rus 2026-03-25 13:52:01 +03:00
parent d739218dc7
commit ef4858df50
3 changed files with 7 additions and 3 deletions

View File

@ -107,7 +107,9 @@ function app_load_config(): array
} }
} }
$optionsPath = app_addon_options_path(); $optionsPath = function_exists('app_addon_options_path')
? app_addon_options_path()
: '/data/options.json';
if (is_file($optionsPath)) { if (is_file($optionsPath)) {
$options = app_load_json_file($optionsPath, []); $options = app_load_json_file($optionsPath, []);
if (is_array($options) && $options !== []) { if (is_array($options) && $options !== []) {

View File

@ -1,6 +1,6 @@
name: Wall Panel name: Wall Panel
description: Wall Panel PHP interface as a Home Assistant add-on description: Wall Panel PHP interface as a Home Assistant add-on
version: "1.0.2" version: "1.0.3"
slug: wall_panel slug: wall_panel
url: https://git.striker72rus.ru/PHP/wallpanell.git url: https://git.striker72rus.ru/PHP/wallpanell.git
init: false init: false

View File

@ -92,7 +92,9 @@ function app_load_config(): array
} }
} }
$optionsPath = app_addon_options_path(); $optionsPath = function_exists('app_addon_options_path')
? app_addon_options_path()
: '/data/options.json';
if (is_file($optionsPath)) { if (is_file($optionsPath)) {
$options = app_load_json_file($optionsPath, []); $options = app_load_json_file($optionsPath, []);
if (is_array($options) && $options !== []) { if (is_array($options) && $options !== []) {