convert lifespan to string for logger
This commit is contained in:
@@ -507,7 +507,7 @@ class VacBot():
|
||||
|
||||
if 'val' in event:
|
||||
lifespan = int(event['val']) / 100
|
||||
_LOGGER.debug("**********Component " + type + " has lifespan of " + lifespan + ".")
|
||||
_LOGGER.debug("**********Component " + type + " has lifespan of " + str(lifespan) + ".")
|
||||
else:
|
||||
lifespan = int(event['left']) / 60 #This works for a D901
|
||||
self.components[type] = lifespan
|
||||
|
||||
Reference in New Issue
Block a user