(self, value)
set serial and check for root
set serial and check for root
set serial and check for root
def device(self, value):
        """ set serial and check for root
        """
        try:
            if isinstance(value, str):
                self._device_serial = value
                self._check_requirements()
        except ValueError:
            self._device_serial = None
def device ( self , value ) : try : if isinstance ( value , str ) : self . _device_serial = value self . _check_requirements ( ) except ValueError : self . _device_serial = None