Camera class updated

This commit is contained in:
Alano Terblanche
2019-08-10 21:48:47 +02:00
parent e7cdd19dfe
commit 696b3ac58f

View File

@@ -4,8 +4,8 @@ from APIHandler import APIHandler
class Camera(APIHandler):
def __init__(self, ip, username="admin", password=""):
APIHandler.__init__(self, ip)
APIHandler.__init__(self, ip, username, password)
self.ip = ip
self.username = username
self.password = password
super().login(self.username, self.password)
super().login()