(self)
return False
This method will immediately install the latest version if out-of-date.
        
        This method expects an active internet connection and allows you to decide yourself
        if you want to install the latest version. It is necessary to run it directly after boot 
        (for memory reasons) and you need to restart the microcontroller if a new version is found.

        Returns
        -------
            bool: true if a new version is available, false otherwise
This method will immediately install the latest version if out-of-date.
        
        This method expects an active internet connection and allows you to decide yourself
        if you want to install the latest version. It is necessary to run it directly after boot 
        (for memory reasons) and you need to restart the microcontroller if a new version is found.
This method will immediately install the latest version if out - of - date . This method expects an active internet connection and allows you to decide yourself if you want to install the latest version . It is necessary to run it directly after boot ( for memory reasons ) and you need to restart the microcontroller if a new version is found .
def install_update_if_available(self) -> bool:
        """This method will immediately install the latest version if out-of-date.
        
        This method expects an active internet connection and allows you to decide yourself
        if you want to install the latest version. It is necessary to run it directly after boot 
        (for memory reasons) and you need to restart the microcontroller if a new version is found.

        Returns
        -------
            bool: true if a new version is available, false otherwise
        """

        (current_version, latest_version) = self._check_for_new_version()
        if latest_version > current_version:
            print('Updating to version {}...'.format(latest_version))
            self._create_new_version_file(latest_version)
            self._download_new_version(latest_version)
            self._copy_secrets_file()
            self._delete_old_version()
            self._install_new_version()
            return True
        
        return False
def install_update_if_available ( self ) -> bool : ( current_version , latest_version ) = self . _check_for_new_version ( ) if latest_version > current_version : print ( 'Updating to version {}...' . format ( latest_version ) ) self . _create_new_version_file ( latest_version ) self . _download_new_version ( latest_version ) self . _copy_secrets_file ( ) self . _delete_old_version ( ) self . _install_new_version ( ) return True return False