Add network support to tplink for discovery across subnets (#56721)
This commit is contained in:
parent
0044fa9fb9
commit
c95f7a5ba6
4 changed files with 18 additions and 10 deletions
|
@ -87,7 +87,7 @@ def _mocked_strip() -> SmartStrip:
|
|||
|
||||
|
||||
def _patch_discovery(device=None, no_device=False):
|
||||
async def _discovery(*_):
|
||||
async def _discovery(*args, **kwargs):
|
||||
if no_device:
|
||||
return {}
|
||||
return {IP_ADDRESS: _mocked_bulb()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue