-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
1,429 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Contributors | ||
- [David F. Mulcahey] (https://github.com/dmulcahey) | ||
- [roblandry] (https://github.com/roblandry) | ||
- [presslab-us] (https://github.com/presslab-us) | ||
- [Alexei Chetroi] (https://github.com/Adminiuga) | ||
- [Abílio Costa] (https://github.com/abmantis) | ||
- [Andreas Setterlind] (https://github.com/Gamester17) | ||
- [prairiesnpr] (https://github.com/prairiesnpr) | ||
- [Daniel Lashua] (https://github.com/dlashua) | ||
- [bballwiz5] (https://github.com/bballwiz5) | ||
- [Ross Patterson] (https://github.com/rpatterson) | ||
- [Marc Egli] (https://github.com/frog32) | ||
- [Dinko Bajric] (https://github.com/dbajric) | ||
- [brg468] (https://github.com/brg468) | ||
- [James Riley] (https://github.com/Thalagyrt) | ||
- [Shulyaka] (https://github.com/Shulyaka) | ||
- [Nemesis24] (https://github.com/Nemesis24) | ||
- [Andy Zickler](https://github.com/andyzickler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
from setuptools import find_packages, setup | ||
|
||
VERSION = "0.0.28" | ||
VERSION = "0.0.29" | ||
|
||
|
||
def readme(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
"""Tests for KOF.""" | ||
from unittest import mock | ||
|
||
import zigpy.device | ||
import zigpy.endpoint | ||
import zigpy.quirks | ||
|
||
|
||
def test_kof_no_reply(): | ||
"""Test KOF No reply.""" | ||
|
||
class TestCluster(zigpy.quirks.kof.NoReplyMixin, zigpy.quirks.CustomCluster): | ||
"""Test Cluster Class.""" | ||
|
||
cluster_id = 0x1234 | ||
void_input_commands = [0x0002] | ||
server_commands = { | ||
0x0001: ("noop", (), False), | ||
0x0002: ("noop_noreply", (), False), | ||
} | ||
client_commands = {} | ||
|
||
end_point = mock.MagicMock() | ||
cluster = TestCluster(end_point) | ||
|
||
cluster.command(0x0001) | ||
end_point.request.assert_called_with( | ||
mock.ANY, mock.ANY, mock.ANY, expect_reply=True, command_id=mock.ANY | ||
) | ||
end_point.reset_mock() | ||
|
||
cluster.command(0x0001, expect_reply=False) | ||
end_point.request.assert_called_with( | ||
mock.ANY, mock.ANY, mock.ANY, expect_reply=False, command_id=mock.ANY | ||
) | ||
end_point.reset_mock() | ||
|
||
cluster.command(0x0002) | ||
end_point.request.assert_called_with( | ||
mock.ANY, mock.ANY, mock.ANY, expect_reply=False, command_id=mock.ANY | ||
) | ||
end_point.reset_mock() | ||
|
||
cluster.command(0x0002, expect_reply=True) | ||
end_point.request.assert_called_with( | ||
mock.ANY, mock.ANY, mock.ANY, expect_reply=True, command_id=mock.ANY | ||
) | ||
end_point.reset_mock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.