'Initialize Zabbix sensor.'

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

    super().__init__(zApi, name)
    self._hostids = hostids
    if (not name):
        host_names = self._zapi.host.get(hostids=self._hostids, output='extend')
        self._name = '    '.join((name['name'] for name in host_names))
    self._attributes['Host    IDs'] = self._hostids
