def __init__(self, name, state, sensor_class):
        self._name = name
        self._state = state
        self._sensor_type = sensor_class
Initialize the demo sensor.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/demo.py/DemoBinarySensor.__init__