'Initialize the Z-Wave switch device.'

def __init__(self, values):

    zwave.ZWaveDeviceEntity.__init__(self, values, DOMAIN)
    self.refresh_on_update = (workaround.get_device_mapping(values.primary) == workaround.WORKAROUND_REFRESH_NODE_ON_UPDATE)
    self.last_update = time.perf_counter()
    self._state = self.values.primary.data
