

def __init__(self, api, sensor_type, client_name):
    'Initialize a new NZBGet sensor.'
    self._name = ((client_name + ' ') + SENSOR_TYPES[sensor_type][0])
    self.type = sensor_type
    self.client_name = client_name
    self.api = api
    self._state = None
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
    self.update()
    _LOGGER.debug('created nzbget sensor %r', self)

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/nzbget.py NZBGetSensor.__init__/original