def close_connection(self):  # pylint: disable=C0103
        """
        Closes serial port connection.

        :return: Nothing
        """
        if self.port:
            self.stop()
            self.logger.debug("Close port '%s'" % self.comport,
                              extra={'type': '<->'})
            self.port.close()
            self.port = False
def close_connection ( self ) : if self . port : self . stop ( ) self . logger . debug ( "Close port '%s'" % self . comport , extra = { 'type' : '<->' } ) self . port . close ( ) self . port = False
Closes serial port connection.

        :return: Nothing