Skip to content

Commit 8ab8b51

Browse files
authored
Upgrade to Api v10.0.160 for Network v10.x
Api v10.0.160 There is a breaking change in the API so the code is not backwards compatible with Network v9.x
2 parents 0db9854 + aa01048 commit 8ab8b51

File tree

110 files changed

+2897
-4556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2897
-4556
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ open_api_client_generator/unifi-network-api-client/
33
openapi_client_generator/integration-fix.json
44
openapi_client_generator/unifi-network-api-client/pyproject.toml
55
openapi_client_generator/unifi-network-api-client/README.md
6+
openapi_client_generator/unifi-network-api-client/.ruff.toml
67
deploy_custom_integration.sh
78
diff_api.sh
89

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Current implementation focuses on core monitoring and basic device control funct
7777

7878
- **UniFi Network Application**: UniFi OS / Network Application version that supports the Integration API
7979
- Must have "Integrations" feature available in Network settings
80-
- API Key generation capability (Network → Settings → Integrations → Add Integration → API Key)
80+
- API Key generation capability (Network → Integrations (icon at bottom left) → Create New Api Key)
8181
- **Network Access**: Home Assistant must have network access to your UniFi Network Application
8282
- Typically runs on port 443 (HTTPS) or 8443
8383
- Integration API endpoint: `/proxy/network/integration`
@@ -121,7 +121,7 @@ Current implementation focuses on core monitoring and basic device control funct
121121
- **Base URL**: Your UniFi Network Integration API endpoint
122122
- Format: `https://<unifi-host-or-ip>/proxy/network/integration`
123123
- Example: `https://192.168.1.1/proxy/network/integration`
124-
- **API Key**: Create one in UniFi Network → Settings → Control Plane → Integrations → API Key
124+
- **API Key**: Create one in Network → Integrations (icon at bottom left) → Create New Api Key
125125
- **Verify SSL Certificate**: Enable for production, disable for self-signed certificates
126126

127127
3. **Site Selection**: Choose which UniFi site to monitor from the automatically discovered list.

custom_components/unifi_network/api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
"""A client library for accessing UniFi Network API"""
12

2-
""" A client library for accessing UniFi Network API """
33
from .client import AuthenticatedClient, Client
44

55
__all__ = (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains methods for accessing the API """
1+
"""Contains methods for accessing the API"""

custom_components/unifi_network/api_client/api/about_application/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

custom_components/unifi_network/api_client/api/about_application/get_info.py

Lines changed: 0 additions & 157 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains endpoint functions for accessing the API """
1+
"""Contains endpoint functions for accessing the API"""

0 commit comments

Comments
 (0)