Skip to content

Commit

Permalink
Syncup with zigpy==0.23.0 changes (#48)
Browse files Browse the repository at this point in the history
* Syncup with zigpy changes.

* Drop py36

* Make lint happy
  • Loading branch information
Adminiuga committed Sep 5, 2020
1 parent 0236426 commit e61468e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 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
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 e61468e

Please sign in to comment.