masterthermconnect
Advanced tools
@@ -17,6 +17,6 @@ name: "Lint" | ||
| - name: "Checkout the repository" | ||
| uses: "actions/checkout@v3.4.0" | ||
| uses: "actions/checkout@v4" | ||
| - name: "Set up Python" | ||
| uses: actions/setup-python@v4.5.0 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
@@ -23,0 +23,0 @@ python-version: "3.11" |
@@ -21,4 +21,4 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
@@ -44,4 +44,4 @@ python-version: ${{ matrix.python-version }} | ||
| if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }} | ||
| uses: codecov/codecov-action@v3 | ||
| uses: codecov/codecov-action@v4 | ||
| with: | ||
| files: ./coverage.xml |
@@ -14,4 +14,4 @@ name: Latest Pre Release | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
@@ -18,0 +18,0 @@ python-version: "3.11" |
@@ -17,4 +17,4 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
@@ -21,0 +21,0 @@ python-version: "3.11" |
| Metadata-Version: 2.1 | ||
| Name: masterthermconnect | ||
| Version: 2.2.10 | ||
| Version: 2.2.11b0 | ||
| Summary: Python 3 API wrapper for Mastertherm API | ||
@@ -33,6 +33,6 @@ Author-email: Richard Holmes <richard@shedc.uk> | ||
| Classifier: Operating System :: OS Independent | ||
| Requires-Python: <=3.12,>=3.9 | ||
| Requires-Python: <3.13,>=3.9 | ||
| Description-Content-Type: text/markdown | ||
| License-File: LICENSE | ||
| Requires-Dist: aiohttp>=3.9.1 | ||
| Requires-Dist: aiohttp>=3.9.3 | ||
| Requires-Dist: natsort>=8.3.1 | ||
@@ -39,0 +39,0 @@ Provides-Extra: dev |
@@ -1,2 +0,2 @@ | ||
| aiohttp>=3.9.1 | ||
| aiohttp>=3.9.3 | ||
| natsort>=8.3.1 | ||
@@ -3,0 +3,0 @@ |
| """Python API wrapper for Mastertherm Connect.""" | ||
| __version__ = "2.2.10" | ||
| __version__ = "2.2.11b0" |
| """Mastertherm API Client Class, handle integration.""" | ||
| import asyncio | ||
@@ -72,2 +73,3 @@ import logging | ||
| MasterthermUnsupportedVersion: API Version is not supported. | ||
| """ | ||
@@ -325,2 +327,3 @@ if api_version not in SUPPORTED_API_VERSIONS: | ||
| URL(str): The API URL for the version. | ||
| """ | ||
@@ -342,2 +345,3 @@ if self.__api_version == "v1": | ||
| MasterthermUnsupportedRole - Role is not in supported roles | ||
| """ | ||
@@ -378,2 +382,3 @@ response_json = await self.__connect_refresh() | ||
| MasterthermServerTimeoutError - Server Timed Out more than once. | ||
| """ | ||
@@ -425,2 +430,3 @@ retry = False | ||
| MasterthermServerTimeoutError - Server Timed Out more than once. | ||
| """ | ||
@@ -511,2 +517,3 @@ retry = False | ||
| MasterthermServerTimeoutError - Server Timed Out more than once. | ||
| """ | ||
@@ -523,5 +530,5 @@ retry = False | ||
| response_json = await self.__post( | ||
| url=URL_POSTUPDATE | ||
| if self.__api_version == "v1" | ||
| else URL_POSTUPDATE_NEW, | ||
| url=( | ||
| URL_POSTUPDATE if self.__api_version == "v1" else URL_POSTUPDATE_NEW | ||
| ), | ||
| params=params, | ||
@@ -540,5 +547,5 @@ ) | ||
| response_json = await self.__post( | ||
| url=URL_POSTUPDATE | ||
| if self.__api_version == "v1" | ||
| else URL_POSTUPDATE_NEW, | ||
| url=( | ||
| URL_POSTUPDATE if self.__api_version == "v1" else URL_POSTUPDATE_NEW | ||
| ), | ||
| params=params, | ||
@@ -545,0 +552,0 @@ ) |
| """Mastertherm Controller, for handling Mastertherm Data.""" | ||
| import logging | ||
@@ -49,2 +50,3 @@ | ||
| MasterthermUnsupportedVersion: API Version is not supported. | ||
| """ | ||
@@ -193,2 +195,3 @@ self.__api = MasterthermAPI( | ||
| MasterthermServerTimeoutError: Server Timed Out more than once. | ||
| """ | ||
@@ -280,2 +283,3 @@ for device in self.__devices.values(): | ||
| MasterthermServerTimeoutError: Server Timed Out more than once. | ||
| """ | ||
@@ -328,2 +332,3 @@ result = await self.__api.connect() | ||
| full_refresh_minutes: Default is 15, minutes between doing updates and full data refresh. | ||
| """ | ||
@@ -369,2 +374,3 @@ if info_refresh_minutes < 0: | ||
| MasterthermServerTimeoutError: Server Timed Out more than once. | ||
| """ | ||
@@ -467,2 +473,3 @@ if not self.__api_connected: | ||
| devices (dict): All the devices associated with the login | ||
| """ | ||
@@ -484,2 +491,3 @@ device_return = {} | ||
| info (dict): Device information. | ||
| """ | ||
@@ -503,2 +511,3 @@ info = {} | ||
| data (dict): Device Raw Data or Updated Data. | ||
| """ | ||
@@ -524,2 +533,3 @@ data = {} | ||
| Device Normalised Data. | ||
| """ | ||
@@ -547,2 +557,3 @@ data = {} | ||
| MasterthermEntryNotFound - Entry is not valid. | ||
| """ | ||
@@ -574,2 +585,3 @@ data = self.get_device_data(module_id, unit_id) | ||
| dict: Returns a dict of all the data for all modules. | ||
| """ | ||
@@ -647,2 +659,3 @@ diagnostics_data = {} | ||
| MasterthermServerTimeoutError - Server Timed Out more than once. | ||
| """ | ||
@@ -649,0 +662,0 @@ # Split the entry into its components and find the mapping and data type. |
+3
-3
| Metadata-Version: 2.1 | ||
| Name: masterthermconnect | ||
| Version: 2.2.10 | ||
| Version: 2.2.11b0 | ||
| Summary: Python 3 API wrapper for Mastertherm API | ||
@@ -33,6 +33,6 @@ Author-email: Richard Holmes <richard@shedc.uk> | ||
| Classifier: Operating System :: OS Independent | ||
| Requires-Python: <=3.12,>=3.9 | ||
| Requires-Python: <3.13,>=3.9 | ||
| Description-Content-Type: text/markdown | ||
| License-File: LICENSE | ||
| Requires-Dist: aiohttp>=3.9.1 | ||
| Requires-Dist: aiohttp>=3.9.3 | ||
| Requires-Dist: natsort>=8.3.1 | ||
@@ -39,0 +39,0 @@ Provides-Extra: dev |
+4
-4
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "masterthermconnect" | ||
| version = "2.2.10" | ||
| version = "2.2.11b0" | ||
| description = "Python 3 API wrapper for Mastertherm API" | ||
@@ -20,6 +20,6 @@ readme = "README.md" | ||
| dependencies = [ | ||
| "aiohttp>=3.9.1", | ||
| "aiohttp>=3.9.3", | ||
| "natsort>=8.3.1" | ||
| ] | ||
| requires-python = ">=3.9,<=3.12" | ||
| requires-python = ">=3.9,<3.13" | ||
@@ -36,3 +36,3 @@ [project.optional-dependencies] | ||
| [tool.bumpver] | ||
| current_version = "2.2.10" | ||
| current_version = "2.2.11-b0" | ||
| version_pattern = "MAJOR.MINOR.PATCH[-PYTAGNUM]" | ||
@@ -39,0 +39,0 @@ commit_message = "bump version {old_version} -> {new_version}" |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
670832
0.01%