original_docstring: Mock the HueBridge from initializing.
docstring: Mock the HueBridge from initializing.
docstring_tokens: Mock the HueBridge from initializing .
code: def mock_bridge():
      """Mock the HueBridge from initializing."""
      with patch('homeassistant.components.hue._find_username_from_config',
                 return_value=None), \
              patch('homeassistant.components.hue.HueBridge') as mock_bridge:
          mock_bridge().async_setup = mock_coro_func()
          mock_bridge.reset_mock()
          yield mock_bridge
code_tokens: def mock_bridge ( ) : with patch ( 'homeassistant.components.hue._find_username_from_config' , return_value = None ) , patch ( 'homeassistant.components.hue.HueBridge' ) as mock_bridge : mock_bridge ( ) . async_setup = mock_coro_func ( ) mock_bridge . reset_mock ( ) yield mock_bridge
short_docstring: Mock the HueBridge from initializing.
short_docstring_tokens: Mock the HueBridge from initializing .
comment: """Mock the HueBridge from initializing."""