-
This commit is contained in:
parent
ef4858df50
commit
1c5831c473
@ -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.3"
|
version: "1.0.4"
|
||||||
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
|
||||||
|
|||||||
@ -51,6 +51,21 @@ function app_config_path(): string
|
|||||||
return APP_ROOT . '/config/config.json';
|
return APP_ROOT . '/config/config.json';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function app_runtime_mode(): string
|
||||||
|
{
|
||||||
|
return strtolower(trim((string)getenv('WALL_PANEL_RUNTIME_MODE')));
|
||||||
|
}
|
||||||
|
|
||||||
|
function app_addon_options_path(): string
|
||||||
|
{
|
||||||
|
$override = trim((string)getenv('WALL_PANEL_OPTIONS_PATH'));
|
||||||
|
if ($override !== '') {
|
||||||
|
return $override;
|
||||||
|
}
|
||||||
|
|
||||||
|
return '/data/options.json';
|
||||||
|
}
|
||||||
|
|
||||||
function app_storage_path(string $file): string
|
function app_storage_path(string $file): string
|
||||||
{
|
{
|
||||||
$override = trim((string)getenv('WALL_PANEL_STORAGE_DIR'));
|
$override = trim((string)getenv('WALL_PANEL_STORAGE_DIR'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user