Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

masterthermconnect

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masterthermconnect - npm Package Compare versions

Comparing version
2.3.0
to
2.3.1
+1
-1
.github/workflows/push-main.yml

@@ -19,3 +19,3 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python

os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.10", "3.11", "3.12", "3.13.0-alpha.3"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

@@ -22,0 +22,0 @@ steps:

@@ -1,4 +0,4 @@

Metadata-Version: 2.1
Metadata-Version: 2.4
Name: masterthermconnect
Version: 2.3.0
Version: 2.3.1
Summary: Python 3 API wrapper for Mastertherm API

@@ -44,2 +44,3 @@ Author-email: Richard Holmes <richard@shedc.uk>

Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

@@ -46,0 +47,0 @@ # Mastertherm Connect Module

"""Python API wrapper for Mastertherm Connect."""
__version__ = "2.3.0"
__version__ = "2.3.1"

@@ -54,2 +54,12 @@ """Constants used by the module."""

"Z",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
]

@@ -56,0 +66,0 @@

@@ -97,3 +97,3 @@ """Mastertherm Controller, for handling Mastertherm Data."""

# Bool needs to converted as an int not string
if item[0] == bool:
if item[0] is bool:
values.append(item[0](int(registers[item[1]])))

@@ -107,3 +107,3 @@ else:

# Bool needs to converted as an int not string
if item_type == bool:
if item_type is bool:
return_value = item_type(int(registers[item_value]))

@@ -141,3 +141,3 @@ else:

# Empty Names return "0"
if hc_name == hc_empty:
if hc_name is hc_empty:
hc_name = ""

@@ -685,3 +685,3 @@

for item in entry_value[1]:
if item[0] == bool:
if item[0] is bool:
values.append(item[0](int(registers[item[1]])))

@@ -688,0 +688,0 @@ else:

@@ -1,4 +0,4 @@

Metadata-Version: 2.1
Metadata-Version: 2.4
Name: masterthermconnect
Version: 2.3.0
Version: 2.3.1
Summary: Python 3 API wrapper for Mastertherm API

@@ -44,2 +44,3 @@ Author-email: Richard Holmes <richard@shedc.uk>

Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

@@ -46,0 +47,0 @@ # Mastertherm Connect Module

@@ -7,3 +7,3 @@ [build-system]

name = "masterthermconnect"
version = "2.3.0"
version = "2.3.1"
description = "Python 3 API wrapper for Mastertherm API"

@@ -35,3 +35,3 @@ readme = "README.md"

[tool.bumpver]
current_version = "2.3.0"
current_version = "2.3.1"
version_pattern = "MAJOR.MINOR.PATCH[-PYTAGNUM]"

@@ -38,0 +38,0 @@ commit_message = "bump version {old_version} -> {new_version}"

@@ -241,3 +241,3 @@ """Test the New API Client."""

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -253,3 +253,3 @@ self.error_type = "login"

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -264,3 +264,3 @@ with pytest.raises(MasterthermResponseFormatError):

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -279,3 +279,3 @@ data = await api.get_device_data("10021", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -301,3 +301,3 @@ data = await api.get_device_data("10021", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -312,3 +312,3 @@ with pytest.raises(MasterthermResponseFormatError):

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -326,3 +326,3 @@ self.error_type = "unavailable"

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -343,3 +343,3 @@ data = await api.get_device_data("10021", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -368,3 +368,3 @@ # Read the Data and issue, Power State

self.error_type = "token_expire"
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -371,0 +371,0 @@ assert await api.get_device_info("10021", "1")

@@ -249,3 +249,3 @@ """Test the API Client."""

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -261,3 +261,3 @@ self.error_type = "login"

)
assert await api.connect() is not {}
assert await api.connect() != {}
info = await api.get_device_info("1234", "2")

@@ -272,3 +272,3 @@

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -287,3 +287,3 @@ data = await api.get_device_data("1234", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -307,3 +307,3 @@ data = await api.get_device_data("1234", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -320,3 +320,3 @@ try:

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -334,3 +334,3 @@ self.error_type = "unavailable"

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -351,3 +351,3 @@ data = await api.get_device_data("1234", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -370,3 +370,3 @@ # Read the Data and issue, Power State

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -396,3 +396,3 @@ # Read the Data and issue, Power State

self.error_type = "token_expire"
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -408,3 +408,3 @@ assert await api.get_device_info("1234", "1")

)
assert await api.connect() is not {}
assert await api.connect() != {}

@@ -411,0 +411,0 @@ assert await api.get_device_info("1234", "1")