Skip to content

Commit ec7b182

Browse files
committed
Manually run codespell
1 parent 5cc6612 commit ec7b182

File tree

12 files changed

+24
-21
lines changed

12 files changed

+24
-21
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ repos:
33
rev: v4.0.1
44
hooks:
55
- id: debug-statements
6+
67
- repo: https://github.com/psf/black
78
rev: 21.9b0
89
hooks:
910
- id: black
1011
args: [--safe, --quiet]
12+
1113
- repo: https://github.com/PyCQA/flake8
1214
rev: 4.0.1
1315
hooks:
1416
- id: flake8
1517
entry: pflake8
1618
additional_dependencies: ['pyproject-flake8==0.0.1a2']
19+
1720
- repo: https://github.com/PyCQA/isort
1821
rev: 5.9.3
1922
hooks:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Texas Instruments (TI) has quite a few different wireless MCU chips and they are
135135
- CC2530: 2.4GHz Zigbee and IEEE 802.15.4 wireless MCU. Intel 8051 core, 256 Flash, only has 8kB RAM.
136136

137137
### Auxiliary TI chips
138-
- CC2591 and CC2592: 2.4 GHz range extenders. These are not wireless MCUs, just auxillary PA (Power Amplifier) and LNA (Low Noise Amplifier) in the same package to improve RF (Radio Frequency) range of any 2.4 GHz radio chip.
138+
- CC2591 and CC2592: 2.4 GHz range extenders. These are not wireless MCUs, just auxiliary PA (Power Amplifier) and LNA (Low Noise Amplifier) in the same package to improve RF (Radio Frequency) range of any 2.4 GHz radio chip.
139139

140140
# Releases via PyPI
141141

tests/api/test_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def send_soon(delay):
7878
await znp.wait_for_response(c.SYS.Ping.Rsp(partial=True))
7979
) == response
8080

81-
# Our future still completed, albeit unsuccesfully.
81+
# Our future still completed, albeit unsuccessfully.
8282
# We should have no leaked listeners here.
8383
assert not znp._listeners
8484

tests/application/test_startup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@
2626
15,
2727
t.Channels.from_channel_list([15]),
2828
0x4402,
29-
t.EUI64.convert("a2:ba:38:a8:b5:e6:83:a0"),
30-
t.KeyData(bytes.fromhex("4c4e72b8412251799abf35251288ca83")),
29+
t.EUI64.convert("A2:BA:38:A8:B5:E6:83:A0"),
30+
t.KeyData.convert("4C:4E:72:B8:41:22:51:79:9A:BF:35:25:12:88:CA:83"),
3131
),
3232
FormedZStack3CC2531: (
3333
"CC2531, Z-Stack 3.0.x (build 20190425)",
3434
15,
3535
t.Channels.from_channel_list([15]),
3636
0xB6AB,
37-
t.EUI64.convert("62:92:32:46:3c:77:2d:b2"),
38-
t.KeyData(bytes.fromhex("6dde24eae28552b6de2956eb05851afa")),
37+
t.EUI64.convert("62:92:32:46:3C:77:2D:B2"),
38+
t.KeyData.convert("6D:DE:24:EA:E2:85:52:B6:DE:29:56:EB:05:85:1A:FA"),
3939
),
4040
FormedZStack1CC2531: (
4141
"CC2531, Z-Stack Home 1.2 (build 20190608)",
4242
11,
4343
t.Channels.from_channel_list([11]),
4444
0x1A62,
45-
t.EUI64.convert("dd:dd:dd:dd:dd:dd:dd:dd"),
45+
t.EUI64.convert("DD:DD:DD:DD:DD:DD:DD:DD"),
4646
t.KeyData([1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]),
4747
),
4848
}

tests/test_types_basic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TestList(t.LVList, item_type=t.uint8_t, length_type=t.uint8_t):
1818

1919

2020
def test_enum_uint():
21-
class TE(t.enum_flag_uint16):
21+
class TestEnum(t.enum_flag_uint16):
2222
ALL = 0xFFFF
2323
CH_1 = 0x0001
2424
CH_2 = 0x0002
@@ -30,13 +30,13 @@ class TE(t.enum_flag_uint16):
3030
extra = b"The rest of the data\x55\xaa"
3131
data = b"\x12\x80"
3232

33-
r, rest = TE.deserialize(data + extra)
33+
r, rest = TestEnum.deserialize(data + extra)
3434
assert rest == extra
3535
assert r == 0x8012
36-
assert r == (TE.CH_2 | TE.CH_6 | TE.CH_Z)
36+
assert r == (TestEnum.CH_2 | TestEnum.CH_6 | TestEnum.CH_Z)
3737

3838
assert r.serialize() == data
39-
assert TE(0x8012).serialize() == data
39+
assert TestEnum(0x8012).serialize() == data
4040

4141

4242
def test_abstract_ints():

tests/tools/test_nvram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def test_nvram_read(device, make_znp_server, tmp_path, mocker):
7979
async def test_nvram_write(device, make_znp_server, tmp_path, mocker):
8080
znp_server = make_znp_server(server_cls=device)
8181

82-
# Prevent the reset from occuring so NVRAM state isn't affected during "startup"
82+
# Prevent the reset from occurring so NVRAM state isn't affected during "startup"
8383
version = znp_server.version_replier(None)
8484
znp_server.reply_to(
8585
c.SYS.ResetReq.Req(partial=True),

zigpy_znp/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ async def connect(self, *, test_port=True) -> None:
503503
# Make sure that our port works
504504
self.capabilities = (await self.request(c.SYS.Ping.Req())).Capabilities
505505

506-
# We need to know how structs are packed to deserialize frames corectly
506+
# We need to know how structs are packed to deserialize frames correctly
507507
await self.nvram.determine_alignment()
508508
self.version = await self.detect_zstack_version()
509509

zigpy_znp/commands/af.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TransmitOptions(t.enum_flag_uint8):
1212
LIMIT_CONCENTRATOR = 0x08
1313
ACK_REQUEST = 0x10
1414

15-
# Suppress Route Discovery for intermediate routes (route discovery preformed for
15+
# Suppress Route Discovery for intermediate routes (route discovery performed for
1616
# initiating device)
1717
SUPPRESS_ROUTE_DISC_NETWORK = 0x20
1818
ENABLE_SECURITY = 0x40

zigpy_znp/commands/mac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ class MAC(t.CommandsBase, subsystem=t.Subsystem.MAC):
437437
t.Param("DstAddrModeAddr", t.AddrModeAddress, "Destination address"),
438438
t.Param("TimeStamp", t.uint32_t, "The timestamp of the message"),
439439
t.Param("TimeStamp2", t.uint16_t, "16 bit timestamp of the message"),
440-
t.Param("SrcPanId", t.PanId, "PAN Id ofo the source address"),
441-
t.Param("DstPanId", t.PanId, "PAN Id ofo the destination address"),
440+
t.Param("SrcPanId", t.PanId, "PAN Id of the source address"),
441+
t.Param("DstPanId", t.PanId, "PAN Id of the destination address"),
442442
t.Param("LQI", t.uint8_t, "Link quality of the message"),
443443
t.Param("Correlation", t.uint8_t, "Correlation"),
444444
t.Param("RSSI", t.int8s, "RSSI"),

zigpy_znp/commands/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AgingEndDevice(t.CStruct):
3030

3131
class LinkInfo(t.CStruct):
3232
txCounter: t.uint8_t # Counter of transmission success/failures
33-
txCost: t.uint8_t # Average of sending rssi values if link staus is enabled
33+
txCost: t.uint8_t # Average of sending rssi values if link status is enabled
3434
# i.e. NWK_LINK_STATUS_PERIOD is defined as non zero
3535
rxLqi: t.uint8_t # average of received rssi values
3636
# needs to be converted to link cost (1-7) before used
@@ -328,7 +328,7 @@ class UTIL(t.CommandsBase, subsystem=t.Subsystem.UTIL):
328328
"IEEE", t.EUI64, "Extended address of the device to lookup the NWK"
329329
),
330330
),
331-
rsp_schema=(t.Param("NWK", t.NWK, "NWK address of the device fo"),),
331+
rsp_schema=(t.Param("NWK", t.NWK, "NWK address of the device"),),
332332
)
333333

334334
# a proxy call to the AddrMgrEntryLookupNwk() function

zigpy_znp/commands/zdo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ class ZDO(t.CommandsBase, subsystem=t.Subsystem.ZDO):
764764
rsp_schema=t.STATUS_SCHEMA,
765765
)
766766

767-
# handle the ZDO route check extension messags
767+
# handle the ZDO route check extension messages
768768
ExtRouteChk = t.CommandDef(
769769
t.CommandType.SREQ,
770770
0x46,
@@ -927,7 +927,7 @@ class ZDO(t.CommandsBase, subsystem=t.Subsystem.ZDO):
927927
t.Param(
928928
"Cmd",
929929
t.uint8_t,
930-
"A valid Cluser ID command as specified by profile",
930+
"A valid Cluster ID command as specified by profile",
931931
),
932932
),
933933
rsp_schema=t.STATUS_SCHEMA,

zigpy_znp/types/nvids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class OsalNvIds(BaseNvIds):
203203
TCLK_DEFAULT = 0x0103 # Not accually a Nv Item but Id used by SecMgr
204204

205205
LEGACY_TCLK_IC_TABLE_START = 0x0104 # Deprecated. Refer to EX_TCLK_IC_TABLE
206-
LEGACY_TCLK_IC_TABLE_END = 0x0110 # IC keys, refered with shift byte
206+
LEGACY_TCLK_IC_TABLE_END = 0x0110 # IC keys, referred with shift byte
207207

208208
LEGACY_TCLK_TABLE_START = 0x0111 # Deprecated. Refer to EX_TCLK_TABLE
209209
LEGACY_TCLK_TABLE_END = 0x01FF

0 commit comments

Comments
 (0)