HomeKit: Bugfix & improved logging (#13431)

* Bugfix & improved logging

* Removed logging statements

* Removed logging test
This commit is contained in:
cdce8p authored and Pascal Vizeli committed 2018-03-25 12:53:15 +02:00
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."""