

def __init__(self, name, state):
    'Initialize the mock device.'
    self._name = (name or DEVICE_DEFAULT_NAME)
    self._state = state
    name.calls = []

dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py MockToggleDevice.__init__/VarMisuse@32/46 `self`->`name`