Skip to content

Commit

Permalink
#553 feat(zigbee): Support IEEE and NWK that are already the correct …
Browse files Browse the repository at this point in the history
…type in ZigbeeMixin
  • Loading branch information
TWilkin committed Dec 7, 2024
1 parent e650f2c commit 57d8912
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/zigbee/zigbee_controller/zigbee/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class ZigbeeMixin(InitialisableMixin):
def __init__(
self,
controller: ZigbeeController,
ieee: str,
nwk: str,
ieee: str | EUI64,
nwk: str | NWK,
**_
):
self.__controller = controller
self.__ieee = EUI64.convert(ieee)
self.__nwk = NWK.convert(nwk[2:])
self.__ieee = ieee if isinstance(ieee, EUI64) else EUI64.convert(ieee)
self.__nwk = nwk if isinstance(nwk, NWK) else NWK.convert(nwk[2:])

@property
def ieee(self):
Expand Down

0 comments on commit 57d8912

Please sign in to comment.