def parseHeater(self, s):
     m = reHeater5.search(s)
     if m:
         t = m.groups()
         if len(t) == 5:
             return list(t)
     # reHeater4 deprecated, for compatibility with old config files only.
     m = reHeater4.search(s)
     if m:
         t = m.groups()
         if len(t) == 4:
             t = list(t)
             t.insert(5, "100")
             return t
     # reHeater3 deprecated, for compatibility with old config files only.
     m = reHeater3.search(s)
     if m:
         t = m.groups()
         if len(t) == 3:
             t = list(t)
             t.insert(2, "0")
             t.insert(5, "100")
             return t
     # End of deprecated part.
     return None
Exemple #2
0
 def parseHeater(self, s):
   m = reHeater5.search(s)
   if m:
     t = m.groups()
     if len(t) == 5:
       return list(t)
   # reHeater4 deprecated, for compatibility with old config files only.
   m = reHeater4.search(s)
   if m:
     t = m.groups()
     if len(t) == 4:
       t = list(t)
       t.insert(5, '100')
       return t
   # reHeater3 deprecated, for compatibility with old config files only.
   m = reHeater3.search(s)
   if m:
     t = m.groups()
     if len(t) == 3:
       t = list(t)
       t.insert(2, '0')
       t.insert(5, '100')
       return t
   # End of deprecated part.
   return None