HomeKit: Bugfix & improved logging (#13431)
* Bugfix & improved logging * Removed logging statements * Removed logging test
This commit is contained in:
1 parent
55daea5169
commit
7db37a3834
7 files changed
+11
-15
No files matched your search
@@ -16,17 +16,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||
CONFIG = {}
|
||||
|
||||
|
||||
def test_get_accessory_invalid(caplog):
|
||||
"""Test with unsupported component."""
|
||||
assert get_accessory(None, State('test.unsupported', 'on'), 2, None) \
|
||||
is None
|
||||
assert caplog.records[1].levelname == 'WARNING'
|
||||
|
||||
assert get_accessory(None, State('test.test', 'on'), None, None) \
|
||||
is None
|
||||
assert caplog.records[3].levelname == 'WARNING'
|
||||
|
||||
|
||||
class TestGetAccessories(unittest.TestCase):
|
||||
"""Methods to test the get_accessory method."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user