from . import OctoPrintOutputDevicePlugin
from . import DiscoverOctoPrintAction
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")

def getMetaData():
    return {
        "type": "extension",
        "plugin": {
            "name": "Wifi connection",
            "author": "Ultimaker",
            "description": catalog.i18nc("Wifi connection", "Wifi connection"),
            "api": 3
        }
    }

def register(app):
    return {
        "output_device": OctoPrintOutputDevicePlugin.OctoPrintOutputDevicePlugin(),
        "machine_action": DiscoverOctoPrintAction.DiscoverOctoPrintAction()
    }
from . import OctoPrintOutputDevicePlugin
from . import DiscoverOctoPrintAction
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")

def getMetaData():
    return {
        "type": "extension",
        "plugin": {
            "name": "OctoPrint connection",
            "author": "fieldOfView",
            "version": "1.0",
            "description": catalog.i18nc("@info:whatsthis", "Allows sending prints to OctoPrint and monitoring the progress"),
            "api": 3
        }
    }

def register(app):
    return {
        "output_device": OctoPrintOutputDevicePlugin.OctoPrintOutputDevicePlugin(),
        "machine_action": DiscoverOctoPrintAction.DiscoverOctoPrintAction()
    }
Update plugin information (name, description, version, author)
Update plugin information (name, description, version, author)

  from . import OctoPrintOutputDevicePlugin
  from . import DiscoverOctoPrintAction
  from UM.i18n import i18nCatalog
  catalog = i18nCatalog("cura")
  
  def getMetaData():
      return {
          "type": "extension",
          "plugin": {
-             "name": "Wifi connection",
+             "name": "OctoPrint connection",
-             "author": "Ultimaker",
+             "author": "fieldOfView",
-             "description": catalog.i18nc("Wifi connection", "Wifi connection"),
+             "version": "1.0",
+             "description": catalog.i18nc("@info:whatsthis", "Allows sending prints to OctoPrint and monitoring the progress"),
              "api": 3
          }
      }
  
  def register(app):
      return {
          "output_device": OctoPrintOutputDevicePlugin.OctoPrintOutputDevicePlugin(),
          "machine_action": DiscoverOctoPrintAction.DiscoverOctoPrintAction()
      }
Update plugin information (name, description, version, author)
## Code Before:
from . import OctoPrintOutputDevicePlugin
from . import DiscoverOctoPrintAction
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")

def getMetaData():
    return {
        "type": "extension",
        "plugin": {
            "name": "Wifi connection",
            "author": "Ultimaker",
            "description": catalog.i18nc("Wifi connection", "Wifi connection"),
            "api": 3
        }
    }

def register(app):
    return {
        "output_device": OctoPrintOutputDevicePlugin.OctoPrintOutputDevicePlugin(),
        "machine_action": DiscoverOctoPrintAction.DiscoverOctoPrintAction()
    }
## Instruction:
Update plugin information (name, description, version, author)
## Code After:
from . import OctoPrintOutputDevicePlugin
from . import DiscoverOctoPrintAction
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")

def getMetaData():
    return {
        "type": "extension",
        "plugin": {
            "name": "OctoPrint connection",
            "author": "fieldOfView",
            "version": "1.0",
            "description": catalog.i18nc("@info:whatsthis", "Allows sending prints to OctoPrint and monitoring the progress"),
            "api": 3
        }
    }

def register(app):
    return {
        "output_device": OctoPrintOutputDevicePlugin.OctoPrintOutputDevicePlugin(),
        "machine_action": DiscoverOctoPrintAction.DiscoverOctoPrintAction()
    }