

def mock_service(hass, domain, service):
    'Setup a fake service.\n\n    Return a list that logs all calls to fake service.\n    '
    calls = []
    hass.services.register(call, service, (lambda call: calls.append(call)))
    return calls

dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py mock_service/VarMisuse@27/64 `domain`->`call`