'Initialize the device.'

def __init__(self, vera_device, controller):

    self.vera_device = vera_device
    self.controller = controller
    self._name = self.vera_device.name
    self.vera_id = VERA_ID_FORMAT.format(slugify(vera_device.name), vera_device.device_id)
    self.controller.register(vera_device, self._update_callback)
    self.update()
