def __init__(self, speedtest_data, sensor_type):
        self._name = SENSOR_TYPES[sensor_type][0]
        self.speedtest_client = speedtest_data
        self.type = sensor_type
        self._state = None
        self._unit_of_measurement = SENSOR_TYPES[self.type][1]
Initialize the sensor.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/speedtest.py/SpeedtestSensor.__init__