Axis devices support device registry (#22367)
* Add support for device registry * Fix test
This commit is contained in:
parent
646c4a7137
commit
52437f6246
5 changed files with 44 additions and 1 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue