-
This commit is contained in:
parent
ef4858df50
commit
1c5831c473
@ -1,6 +1,6 @@
|
||||
name: Wall Panel
|
||||
description: Wall Panel PHP interface as a Home Assistant add-on
|
||||
version: "1.0.3"
|
||||
version: "1.0.4"
|
||||
slug: wall_panel
|
||||
url: https://git.striker72rus.ru/PHP/wallpanell.git
|
||||
init: false
|
||||
|
||||
@ -51,6 +51,21 @@ function app_config_path(): string
|
||||
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
|
||||
{
|
||||
$override = trim((string)getenv('WALL_PANEL_STORAGE_DIR'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user