def __init__(self, device_id, device, async_set_state_callback):
        """Initalize temperature sensor."""
        self._async_set_state_callback = async_set_state_callback
        self._heatsetpoint = device['config'].get('heatsetpoint')
        self._locked = device['config'].get('locked')
        self._mode = device['config'].get('mode')
        self._offset = device['config'].get('offset')
        self._valve = device['state'].get('valve')
        super().__init__(device_id, device)
        self._on = device['state'].get('on')
def __init__ ( self , device_id , device , async_set_state_callback ) : self . _async_set_state_callback = async_set_state_callback self . _heatsetpoint = device [ 'config' ] . get ( 'heatsetpoint' ) self . _locked = device [ 'config' ] . get ( 'locked' ) self . _mode = device [ 'config' ] . get ( 'mode' ) self . _offset = device [ 'config' ] . get ( 'offset' ) self . _valve = device [ 'state' ] . get ( 'valve' ) super ( ) . __init__ ( device_id , device ) self . _on = device [ 'state' ] . get ( 'on' )
Initalize temperature sensor.