async def register_callback(hass, callback, match_dict):
    'Immediately do callback.'
    (await callback(TEST_DISCOVERY, ssdp.SsdpChange.ALIVE))
    return MagicMock()
Immediately do callback.
async def register_callback(hass, callback, match_dict):
    
    (await callback(TEST_DISCOVERY, ssdp.SsdpChange.ALIVE))
    return MagicMock()