def METHOD_NAME(self, keys):
    self.keys = keys
    self.lcncstat = linuxcnc.stat()
    self.lcncstat.poll()
    self.hal = hal.component('mqtt-publisher')
    self.hal.newpin('enable', hal.HAL_BIT, hal.HAL_IN)
    self.hal['enable'] = True
    self.hal.newpin('period', hal.HAL_U32, hal.HAL_IN)
    self.hal['period'] = 10
    self.hal.newpin('lastpublish', hal.HAL_U32, hal.HAL_OUT)
    self.hal['lastpublish'] = 0
    self.hal.ready()