def __init__(self, name, state):
        self._name = name or DEVICE_DEFAULT_NAME
        self._state = state
        self.calls = []
Initialize the mock device.
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/MockToggleDevice.__init__