-
This commit is contained in:
parent
d739218dc7
commit
ef4858df50
@ -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 !== []) {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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 !== []) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user