Fix ENABLE_PLUGINS bug discovered in #203

This commit is contained in:
Jokob-sk
2023-04-02 09:50:50 +10:00
parent 62669fd181
commit a6c2b9254b
3 changed files with 6 additions and 6 deletions

View File

@@ -3299,6 +3299,7 @@ def update_api(isNotification = False, updateOnlyDataSources = []):
write_file(folder + 'notification_json_final.json' , json.dumps(json_final))
# Save plugins
if ENABLE_PLUGINS:
write_file(folder + 'plugins.json' , json.dumps({"data" : plugins}))
# prepare database tables we want to expose

View File

@@ -131,8 +131,6 @@ function localize (obj, key) {
{
code = obj[key][i]["language_code"]
// console.log(code)
if( code == 'en_us')
{
en_us = obj[key][i]["string"]

View File

@@ -4,7 +4,7 @@ A plugin allowing for importing devices from a UniFi controller.
### Usage
Spedify the following settings in the Settings section of PiAlert:
Specify the following settings in the Settings section of PiAlert:
- `UNFIMP_username` - Username used to login into the UNIFI controller.
- `UNFIMP_password` - Password used to login into the UNIFI controller.
@@ -16,3 +16,4 @@ Spedify the following settings in the Settings section of PiAlert:
### Notes
- Currently only used to import devices, not their status, type or network map.
- It is recommend to create a read-only user in your UniFi controller