Use OctoPrint native Way of getting the Version number

This commit is contained in:
Franzi 2017-11-20 13:08:45 +01:00
parent 23dddb11bc
commit 027a67c530
1 changed files with 1 additions and 2 deletions

View File

@ -202,8 +202,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
self._line2 = ''
self._line3 = ''
version = octoprint.server.DISPLAY_VERSION
line4 = 'OctoPrint ' + version.split(' ', 1)[0]
line4 = 'OctoPrint ' + octoprint.__version__
self._line4 = line4.center(20)