Skip to content

Commit

Permalink
Merge pull request #534 from puddly/rc
Browse files Browse the repository at this point in the history
0.34.10 Release
  • Loading branch information
puddly authored Mar 13, 2023
2 parents b2e33a8 + 69926a6 commit eec5e1c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.1.0
hooks:
- id: black
args:
- --safe
- --quiet
- repo: https://github.com/pycqa/flake8
rev: 3.8.4
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.5.2
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/codespell-project/codespell
rev: v1.17.1
rev: v2.2.4
hooks:
- id: codespell
args:
Expand Down
2 changes: 1 addition & 1 deletion bellows/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MAJOR_VERSION = 0
MINOR_VERSION = 34
PATCH_VERSION = "9"
PATCH_VERSION = "10"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
8 changes: 4 additions & 4 deletions bellows/ezsp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
PROBE_TIMEOUT = 3
NETWORK_OPS_TIMEOUT = 10
LOGGER = logging.getLogger(__name__)
MTOR_MIN_INTERVAL = 10
MTOR_MAX_INTERVAL = 90
MTOR_ROUTE_ERROR_THRESHOLD = 4
MTOR_DELIVERY_FAIL_THRESHOLD = 3
MTOR_MIN_INTERVAL = 60
MTOR_MAX_INTERVAL = 3600
MTOR_ROUTE_ERROR_THRESHOLD = 8
MTOR_DELIVERY_FAIL_THRESHOLD = 8

NETWORK_COORDINATOR_STARTUP_RESET_WAIT = 1

Expand Down
2 changes: 1 addition & 1 deletion bellows/types/named.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class EzspStatus(basic.enum8):
ERROR_SECURITY_PARAMETERS_NOT_SET = 0x48
# Received frame with unsupported control byte
ERROR_UNSUPPORTED_CONTROL = 0x49
# Received frame is unsecure, when security is established
# Received frame is insecure, when security is established
ERROR_UNSECURE_FRAME = 0x4A
# Incompatible ASH version
ASH_ERROR_VERSION = 0x50
Expand Down
1 change: 0 additions & 1 deletion tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ async def test_permit_with_key_ieee(app, ieee, version, tc_policy_count, ezsp_ty


async def test_permit_with_key_invalid_install_code(app, ieee):

with pytest.raises(Exception):
await app.permit_with_key(
ieee, bytes([0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88]), 60
Expand Down
12 changes: 6 additions & 6 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def test_ids(commands):

def test_parms(commands):
"""Test that parameter descriptions seem valid"""
for command, parms in commands.items():
assert isinstance(parms[1], tuple), command
assert isinstance(parms[2], tuple), command
for command, params in commands.items():
assert isinstance(params[1], tuple), command
assert isinstance(params[2], tuple), command


def test_handlers(commands):
"""Test that handler methods only have responses"""
for command, parms in commands.items():
for command, params in commands.items():
if not command.endswith("Handler"):
continue
assert len(parms[1]) == 0, command
assert len(parms[2]) > 0, command
assert len(params[1]) == 0, command
assert len(params[2]) > 0, command
2 changes: 0 additions & 2 deletions tests/test_multicast.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async def mock_get(*args):


async def test_initialize_fail_configured_size(multicast):

multicast._ezsp.getConfigurationValue.return_value = t.EmberStatus.ERR_FATAL, 16
await multicast._initialize()
ezsp = multicast._ezsp
Expand Down Expand Up @@ -75,7 +74,6 @@ async def mock_get(*args):


async def test_startup(multicast):

coordinator = MagicMock()
ep1 = MagicMock(spec_set=Endpoint)
ep1.member_of = [sentinel.grp, sentinel.grp, sentinel.grp]
Expand Down

0 comments on commit eec5e1c

Please sign in to comment.