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