python-pooldose 0.6.8__tar.gz → 0.6.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/PKG-INFO +7 -8
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/README.md +6 -7
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/__init__.py +1 -1
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/__main__.py +1 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/client.py +11 -9
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/PKG-INFO +7 -8
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/LICENSE +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/pyproject.toml +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/setup.cfg +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/constants.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/device_analyzer.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/mappings/__init__.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/mappings/mapping_info.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/mappings/model_PDPR1H1HAR1V0_FW539224.json +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/mappings/model_PDPR1H1HAW100_FW539187.json +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/mock_client.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/py.typed +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/request_handler.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/request_status.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/values/__init__.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/values/instant_values.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/pooldose/values/static_values.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/SOURCES.txt +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/dependency_links.txt +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/entry_points.txt +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/requires.txt +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/top_level.txt +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_client.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_device_analyzer.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_device_analyzer_integration.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_instant_values.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_mapping_info.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_request_handler.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_ssl_support.py +0 -0
- {python_pooldose-0.6.8 → python_pooldose-0.6.9}/tests/test_static_values.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-pooldose
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: Unoffical async Python client for SEKO PoolDose devices
|
|
5
5
|
Author-email: Lukas Maertin <pypi@lukas-maertin.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -141,7 +141,8 @@ client = PooldoseClient(
|
|
|
141
141
|
use_ssl=True,
|
|
142
142
|
port=8443,
|
|
143
143
|
ssl_verify=True, # Verify SSL certificates
|
|
144
|
-
include_sensitive_data=False
|
|
144
|
+
include_sensitive_data=False,
|
|
145
|
+
include_mac_lookup=False
|
|
145
146
|
)
|
|
146
147
|
```
|
|
147
148
|
|
|
@@ -765,7 +766,7 @@ Mapping Discovery Process:
|
|
|
765
766
|
#### Constructor
|
|
766
767
|
|
|
767
768
|
```python
|
|
768
|
-
PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, port=None, ssl_verify=True)
|
|
769
|
+
PooldoseClient(host, timeout=30, include_sensitive_data=False, include_mac_lookup=False, use_ssl=False, port=None, ssl_verify=True)
|
|
769
770
|
```
|
|
770
771
|
|
|
771
772
|
**Parameters:**
|
|
@@ -773,6 +774,7 @@ PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, po
|
|
|
773
774
|
- `host` (str): The hostname or IP address of the device
|
|
774
775
|
- `timeout` (int): Request timeout in seconds (default: 30)
|
|
775
776
|
- `include_sensitive_data` (bool): Whether to include sensitive data like WiFi passwords (default: False)
|
|
777
|
+
- `include_mac_lookup` (bool): Whether to include MAC lookup via ARP (default: False)
|
|
776
778
|
- `use_ssl` (bool): Whether to use HTTPS instead of HTTP (default: False)
|
|
777
779
|
- `port` (Optional[int]): Custom port for connections. Defaults to 80 for HTTP, 443 for HTTPS (default: None)
|
|
778
780
|
- `ssl_verify` (bool): Whether to verify SSL certificates when using HTTPS (default: True)
|
|
@@ -932,7 +934,6 @@ Data Classification:
|
|
|
932
934
|
│ • Serial Number │ │ │ │ │
|
|
933
935
|
│ • Sensor Values │ │ │ │ │
|
|
934
936
|
│ • IP Address │ │ │ │ │
|
|
935
|
-
│ • MAC Address │ │ │ │ │
|
|
936
937
|
└─────────────────┘ └─────────────────┘ └─────────────────┘
|
|
937
938
|
│ │ │
|
|
938
939
|
▼ ▼ ▼
|
|
@@ -943,8 +944,6 @@ Data Classification:
|
|
|
943
944
|
|
|
944
945
|
For detailed release notes and version history, please see [CHANGELOG.md](CHANGELOG.md).
|
|
945
946
|
|
|
946
|
-
### Latest Release (0.6.
|
|
947
|
+
### Latest Release (0.6.9)
|
|
947
948
|
|
|
948
|
-
- **Client**:
|
|
949
|
-
- **Mapping**: Further fixes for PDPR1H1HAR1V0_FW539224
|
|
950
|
-
- **Values**: Added conversion for binary sensors
|
|
949
|
+
- **Client**: Optional MAC lookup with include_mac_lookup flag
|
|
@@ -122,7 +122,8 @@ client = PooldoseClient(
|
|
|
122
122
|
use_ssl=True,
|
|
123
123
|
port=8443,
|
|
124
124
|
ssl_verify=True, # Verify SSL certificates
|
|
125
|
-
include_sensitive_data=False
|
|
125
|
+
include_sensitive_data=False,
|
|
126
|
+
include_mac_lookup=False
|
|
126
127
|
)
|
|
127
128
|
```
|
|
128
129
|
|
|
@@ -746,7 +747,7 @@ Mapping Discovery Process:
|
|
|
746
747
|
#### Constructor
|
|
747
748
|
|
|
748
749
|
```python
|
|
749
|
-
PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, port=None, ssl_verify=True)
|
|
750
|
+
PooldoseClient(host, timeout=30, include_sensitive_data=False, include_mac_lookup=False, use_ssl=False, port=None, ssl_verify=True)
|
|
750
751
|
```
|
|
751
752
|
|
|
752
753
|
**Parameters:**
|
|
@@ -754,6 +755,7 @@ PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, po
|
|
|
754
755
|
- `host` (str): The hostname or IP address of the device
|
|
755
756
|
- `timeout` (int): Request timeout in seconds (default: 30)
|
|
756
757
|
- `include_sensitive_data` (bool): Whether to include sensitive data like WiFi passwords (default: False)
|
|
758
|
+
- `include_mac_lookup` (bool): Whether to include MAC lookup via ARP (default: False)
|
|
757
759
|
- `use_ssl` (bool): Whether to use HTTPS instead of HTTP (default: False)
|
|
758
760
|
- `port` (Optional[int]): Custom port for connections. Defaults to 80 for HTTP, 443 for HTTPS (default: None)
|
|
759
761
|
- `ssl_verify` (bool): Whether to verify SSL certificates when using HTTPS (default: True)
|
|
@@ -913,7 +915,6 @@ Data Classification:
|
|
|
913
915
|
│ • Serial Number │ │ │ │ │
|
|
914
916
|
│ • Sensor Values │ │ │ │ │
|
|
915
917
|
│ • IP Address │ │ │ │ │
|
|
916
|
-
│ • MAC Address │ │ │ │ │
|
|
917
918
|
└─────────────────┘ └─────────────────┘ └─────────────────┘
|
|
918
919
|
│ │ │
|
|
919
920
|
▼ ▼ ▼
|
|
@@ -924,8 +925,6 @@ Data Classification:
|
|
|
924
925
|
|
|
925
926
|
For detailed release notes and version history, please see [CHANGELOG.md](CHANGELOG.md).
|
|
926
927
|
|
|
927
|
-
### Latest Release (0.6.
|
|
928
|
+
### Latest Release (0.6.9)
|
|
928
929
|
|
|
929
|
-
- **Client**:
|
|
930
|
-
- **Mapping**: Further fixes for PDPR1H1HAR1V0_FW539224
|
|
931
|
-
- **Values**: Added conversion for binary sensors
|
|
930
|
+
- **Client**: Optional MAC lookup with include_mac_lookup flag
|
|
@@ -26,7 +26,7 @@ class PooldoseClient:
|
|
|
26
26
|
All getter methods return (status, data) and log errors.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
-
def __init__(self, host: str, timeout: int = 30, *, include_sensitive_data: bool = False, use_ssl: bool = False, port: Optional[int] = None, ssl_verify: bool = True) -> None: # pylint: disable=too-many-arguments
|
|
29
|
+
def __init__(self, host: str, timeout: int = 30, *, include_sensitive_data: bool = False, include_mac_lookup: bool = False, use_ssl: bool = False, port: Optional[int] = None, ssl_verify: bool = True) -> None: # pylint: disable=too-many-arguments
|
|
30
30
|
"""
|
|
31
31
|
Initialize the Pooldose client.
|
|
32
32
|
|
|
@@ -41,6 +41,7 @@ class PooldoseClient:
|
|
|
41
41
|
self._host = host
|
|
42
42
|
self._timeout = timeout
|
|
43
43
|
self._include_sensitive_data = include_sensitive_data
|
|
44
|
+
self._include_mac_lookup = include_mac_lookup
|
|
44
45
|
self._use_ssl = use_ssl
|
|
45
46
|
self._port = port
|
|
46
47
|
self._ssl_verify = ssl_verify
|
|
@@ -193,14 +194,15 @@ class PooldoseClient:
|
|
|
193
194
|
if self._include_sensitive_data:
|
|
194
195
|
_LOGGER.info("Included WiFi and AP keys (use include_sensitive_data=False to exclude)")
|
|
195
196
|
|
|
196
|
-
# MAC address via getmac library
|
|
197
|
-
if self.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
# Optionally: MAC address via getmac library (using arp which may not work on all network topologies)
|
|
198
|
+
if self._include_mac_lookup:
|
|
199
|
+
if self.device_info["IP"]:
|
|
200
|
+
self.device_info["MAC"] = get_mac_address(ip=self.device_info["IP"])
|
|
201
|
+
if not self.device_info["MAC"]:
|
|
202
|
+
_LOGGER.warning("Failed to fetch MAC address via getmac library for IP: %s", self.device_info["IP"])
|
|
203
|
+
else:
|
|
204
|
+
_LOGGER.warning("IP address not set, cannot fetch MAC address via getmac library")
|
|
205
|
+
self.device_info["MAC"] = None
|
|
204
206
|
|
|
205
207
|
return RequestStatus.SUCCESS
|
|
206
208
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-pooldose
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: Unoffical async Python client for SEKO PoolDose devices
|
|
5
5
|
Author-email: Lukas Maertin <pypi@lukas-maertin.de>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -141,7 +141,8 @@ client = PooldoseClient(
|
|
|
141
141
|
use_ssl=True,
|
|
142
142
|
port=8443,
|
|
143
143
|
ssl_verify=True, # Verify SSL certificates
|
|
144
|
-
include_sensitive_data=False
|
|
144
|
+
include_sensitive_data=False,
|
|
145
|
+
include_mac_lookup=False
|
|
145
146
|
)
|
|
146
147
|
```
|
|
147
148
|
|
|
@@ -765,7 +766,7 @@ Mapping Discovery Process:
|
|
|
765
766
|
#### Constructor
|
|
766
767
|
|
|
767
768
|
```python
|
|
768
|
-
PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, port=None, ssl_verify=True)
|
|
769
|
+
PooldoseClient(host, timeout=30, include_sensitive_data=False, include_mac_lookup=False, use_ssl=False, port=None, ssl_verify=True)
|
|
769
770
|
```
|
|
770
771
|
|
|
771
772
|
**Parameters:**
|
|
@@ -773,6 +774,7 @@ PooldoseClient(host, timeout=30, include_sensitive_data=False, use_ssl=False, po
|
|
|
773
774
|
- `host` (str): The hostname or IP address of the device
|
|
774
775
|
- `timeout` (int): Request timeout in seconds (default: 30)
|
|
775
776
|
- `include_sensitive_data` (bool): Whether to include sensitive data like WiFi passwords (default: False)
|
|
777
|
+
- `include_mac_lookup` (bool): Whether to include MAC lookup via ARP (default: False)
|
|
776
778
|
- `use_ssl` (bool): Whether to use HTTPS instead of HTTP (default: False)
|
|
777
779
|
- `port` (Optional[int]): Custom port for connections. Defaults to 80 for HTTP, 443 for HTTPS (default: None)
|
|
778
780
|
- `ssl_verify` (bool): Whether to verify SSL certificates when using HTTPS (default: True)
|
|
@@ -932,7 +934,6 @@ Data Classification:
|
|
|
932
934
|
│ • Serial Number │ │ │ │ │
|
|
933
935
|
│ • Sensor Values │ │ │ │ │
|
|
934
936
|
│ • IP Address │ │ │ │ │
|
|
935
|
-
│ • MAC Address │ │ │ │ │
|
|
936
937
|
└─────────────────┘ └─────────────────┘ └─────────────────┘
|
|
937
938
|
│ │ │
|
|
938
939
|
▼ ▼ ▼
|
|
@@ -943,8 +944,6 @@ Data Classification:
|
|
|
943
944
|
|
|
944
945
|
For detailed release notes and version history, please see [CHANGELOG.md](CHANGELOG.md).
|
|
945
946
|
|
|
946
|
-
### Latest Release (0.6.
|
|
947
|
+
### Latest Release (0.6.9)
|
|
947
948
|
|
|
948
|
-
- **Client**:
|
|
949
|
-
- **Mapping**: Further fixes for PDPR1H1HAR1V0_FW539224
|
|
950
|
-
- **Values**: Added conversion for binary sensors
|
|
949
|
+
- **Client**: Optional MAC lookup with include_mac_lookup flag
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_pooldose-0.6.8 → python_pooldose-0.6.9}/src/python_pooldose.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|