Roomba980-Python icon indicating copy to clipboard operation
Roomba980-Python copied to clipboard

replace roombaName in log messages with address when roombaName not known

Open turboc1208 opened this issue 6 years ago • 0 comments

When roombaName is unknown, the log messages which display self.roombaName display an empty string for the name. Please either look up the name from the config file or somewhere when the name is unknown, or replace it with the address (IP address). This will significantly aid in log readability when more than one roomba is in the house. The following code snippet might prove useful.

self.password = password if roombaName == "": self.roombaName=address else: self.roombaName = roombaName self.log.info("Setting roombaName to {}".format(self.roombaName)) self.topic = topic This could impact the set_mqtt_client function, and map file naming.

turboc1208 avatar Feb 19 '19 21:02 turboc1208