@classmethod
def new(cls, client, *a, type='mixing', **kw):
    """
        Create a new bridge with this state machine.

        Always use as `async with …`.

        Arguments other than "client" and "type" are passed to the constructor.
        """
    s = object.__new__(cls)
    s.client = client
    s._bridge_args = dict(type=type, bridgeId=client.generate_id('B'))
    s._bridge_kw = kw
    return s
