Axis devices support device registry (#22367)

* Add support for device registry

* Fix test
This commit is contained in:
Robert Svensson authored and Martin Hjelmare committed 2019-03-27 18:25:01 +01:00
1 parent 646c4a7137
commit 52437f6246
5 files changed
+44 -1

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ async def test_setup_entry(hass):
mock_device = Mock()
mock_device.async_setup.return_value = mock_coro(True)
mock_device.async_update_device_registry.return_value = mock_coro(True)
mock_device.serial.return_value = '1'
with patch.object(axis, 'AxisNetworkDevice') as mock_device_class, \