deCONZ add via_hub attribute for device registry (#16760)
* deCONZ add via_hub attribute for device registry * A shorter way to get bridgeid
This commit is contained in:
1 parent
78b6439ee6
commit
90c18d1c15
8 files changed
+14
No files matched your search
@@ -34,6 +34,7 @@ async def setup_bridge(hass, data, allow_clip_sensor=True):
|
||||
entry = Mock()
|
||||
entry.data = {'host': '1.2.3.4', 'port': 80, 'api_key': '1234567890ABCDEF'}
|
||||
bridge = DeconzSession(loop, session, **entry.data)
|
||||
bridge.config = Mock()
|
||||
with patch('pydeconz.DeconzSession.async_get_state',
|
||||
return_value=mock_coro(data)):
|
||||
await bridge.async_load_parameters()
|
||||
|
||||
Reference in new issue
Block a user