(self, old_data=None)
initialize migration.
initialize migration.
initialize migration .
def __init__(self, old_data=None):
        """initialize migration."""
        self.old_data = old_data
        self.logger = Logger("hacs.migration")
        self.source = f"{self.system.config_path}/.storage/hacs"
        self.cleanup()
        self.backup()
def __init__ ( self , old_data = None ) : self . old_data = old_data self . logger = Logger ( "hacs.migration" ) self . source = f"{self.system.config_path}/.storage/hacs" self . cleanup ( ) self . backup ( )