diff --git a/pyoverkiz/enums/gateway.py b/pyoverkiz/enums/gateway.py index 9d1b2811..15f4517c 100644 --- a/pyoverkiz/enums/gateway.py +++ b/pyoverkiz/enums/gateway.py @@ -94,7 +94,7 @@ class GatewaySubType(UnknownEnumMixin, IntEnum): TAHOMA_PRO = 14 TAHOMA_SECURITY_SHORT_CHANNEL = 15 TAHOMA_SECURITY_PRO = 16 - # TAHOMA_BOX_C_IO = 12 # Note: This is likely 17, but tahomalink.com lists it as 12 + TAHOMA_BOX_C_IO = 17 @property def beautify_name(self) -> str: diff --git a/pyproject.toml b/pyproject.toml index 067a3ca2..15ae4d59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,6 +114,8 @@ select = [ "RET", # flake8-pie "PIE", + # eradicate + "ERA", ] ignore = [ "E501", # Line too long diff --git a/tests/test_client.py b/tests/test_client.py index 0fc77682..c5dd1250 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -469,11 +469,6 @@ async def test_get_diagnostic_data_without_masking(self, client: OverkizClient): exceptions.ResourceAccessDeniedError, 400, ), - # ( - # "local/204-no-corresponding-execId.json", - # exceptions.OverkizError, - # 204, - # ), ( "local/400-bad-parameters.json", exceptions.OverkizError, diff --git a/utils/generate_enums.py b/utils/generate_enums.py index fe6581f7..3b88d9be 100644 --- a/utils/generate_enums.py +++ b/utils/generate_enums.py @@ -21,7 +21,7 @@ from pyoverkiz.models import UIProfileDefinition, ValuePrototype # Hardcoded protocols that may not be available on all servers -# Format: (name, prefix, id, label) +# Each tuple contains: name, prefix, id, label ADDITIONAL_PROTOCOLS: list[tuple[str, str, int | None, str | None]] = [ ("HLRR_WIFI", "hlrrwifi", None, None), ("MODBUSLINK", "modbuslink", 44, "ModbusLink"), # via Atlantic Cozytouch