[Local Agent] Sync go/nest-cl/283932. Change-Id: I2fbcaa38a49c5f2d9e724d0280d589eee921c75b
diff --git a/README.md b/README.md index 9f1a936..a320a82 100644 --- a/README.md +++ b/README.md
@@ -180,12 +180,43 @@ ``` +## Update Local Agent + +If your Local Agent is outdated, you'll need to update the package manually: + +1. Go to the directory where you installed the local agent: + ``` + $ cd /path/to/{repo-base}/local-agent + ``` + +2. Fetch and rebase to get the latest commit: + ``` + $ git fetch origin + $ git rebase origin/master + ``` + +3. Enable the virtual environment and install the latest Local Agent: + ``` + $ source <venv-name>/bin/activate + $ cd /path/to/{repo-base}/local-agent + $ pip install . + ``` + + ## Troubleshooting ### I can't install the Local Agent on my host. Make sure you're using Ubuntu LTS on your host and python version is ```>= 3.7```. +### The Local Agent complained that the linking code is incorrect. + +Make sure your local agent is talking to the correct backend service: +The local agent will use the official backend configuration if the ```AMS_HOST```, ```AMS_PORT``` +and ```AMS_SCHEME``` are not provided in ```local_agent_config.ini```, so for the external users, +you should just simply leave these fields blank. For the internal users who deploy the backend +by themselves, should probably check the backend configurations in ```local_agent_config.ini```. + ### My Matter device is not detected by Local Agent. Local Agent uses Pigweed RPC debug interface for communicating with Matter devices, make sure
diff --git a/setup.py b/setup.py index d383f3b..6b4576d 100644 --- a/setup.py +++ b/setup.py
@@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,13 +31,13 @@ # Package meta-data NAME = 'Local-Agent' -DESCRIPTION = 'Local Agent Process in Rainier Test Infrastructure' +DESCRIPTION = 'Local Agent in Smart Home Test Suite' REQUIRES_PYTHON = '>=3.7' VERSION = get_version() -LICENSE = 'Copyright 2021 Google LLC' +LICENSE = 'Copyright 2022 Google LLC' REQUIRED_MODULES = [ - 'gazoo-device', 'inflection', 'requests >= 2.25.0'] + 'gazoo-device >= 1.52.0', 'inflection', 'requests >= 2.25.0', 'wheel'] TEST_REQUIRED_MODULES = { 'test': ['coverage', 'immutabledict', 'parameterized']}