Skip to content

Commit

Permalink
0.6.2 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga authored Sep 5, 2020
2 parents 0236426 + 3c5f130 commit 3a48b14
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ language: python
matrix:
fast_finish: true
include:
- python: "3.6"
- python: "3.7"
env: TOXENV=lint
- python: "3.6"
env: TOXENV=py36
- python: "3.7"
env: TOXENV=py37
- python: "3.8"
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ def is_raspberry_pi(raise_on_errors=False):
return True


requires = ['pyserial-asyncio',
'zigpy>=0.20.1.a3',
]
requires = [
'pyserial-asyncio',
'zigpy>=0.22.2',
]

if is_raspberry_pi():
requires.append('RPi.GPIO')

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py36, py37, py38, lint
envlist = py37, py38, lint
skip_missing_interpreters = True

[testenv]
Expand Down
2 changes: 1 addition & 1 deletion zigpy_zigate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MAJOR_VERSION = 0
MINOR_VERSION = 6
PATCH_VERSION = '1'
PATCH_VERSION = '2'
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
8 changes: 6 additions & 2 deletions zigpy_zigate/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ def serialize(self):
return super().serialize()[::-1]


class NWK(zigpy.types.HexRepr, uint16_t):
pass
class NWK(uint16_t):
def __repr__(self):
return "0x{:04x}".format(self)

def __str__(self):
return "0x{:04x}".format(self)


class ADDRESS_MODE(uint8_t, enum.Enum):
Expand Down

0 comments on commit 3a48b14

Please sign in to comment.