mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-07-21 09:03:02 +02:00
fix: implement get advert_loc_policy console command
The set command was implemented but get was missing, causing "Unknown param" error. Reads adv_loc_policy from device info. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2892,6 +2892,8 @@ class DeviceManager:
|
||||
if event and hasattr(event, 'payload'):
|
||||
return {'success': True, 'data': event.payload}
|
||||
return {'success': False, 'error': 'No custom vars response'}
|
||||
elif param == 'advert_loc_policy':
|
||||
return {'success': True, 'data': {'advert_loc_policy': info.get('adv_loc_policy', '?')}}
|
||||
elif param == 'path_hash_mode':
|
||||
# get_path_hash_mode() returns int, not Event
|
||||
value = self.execute(self.mc.commands.get_path_hash_mode(), timeout=5)
|
||||
|
||||
Reference in New Issue
Block a user