def __init__(self, req, client_addr, server): # self._request = req # self._address = client_addr self._logger = PytoLogging(self.__class__.__name__) self._api = PytomationAPI() self._server = server SimpleHTTPRequestHandler.__init__(self, req, client_addr, server)
def __init__(self, interface, sensorPairs=None, *args, **kwargs): self._logger = PytoLogging(self.__class__.__name__) self._logger.info("doing __init__") super(RemotePi, self).__init__(interface, *args, **kwargs) #self.hostname = interface[0] #self.port = interface[1] self.gpioPi = interface self.sensorPairs = sensorPairs