'Initialize Zabbix sensor.'

def __init__(self, zApi, hostid, name=None):

    super().__init__(zApi, name)
    self._hostid = hostid
    if (not name):
        self._name = self._zapi.host.get(hostids=self._hostid, output='extend')[0]['name']
    self._attributes['Host    ID'] = self._hostid
