예제 #1
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the computer APIs
     """
     p_pyhouse_obj.APIs.Computer = ComputerAPIs()
     p_pyhouse_obj.APIs.Computer.ComputerAPI = p_api
     p_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.CommunicationsAPI = communicationAPI(
         p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.InternetAPI = internetAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.NodesAPI = nodesAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WeatherAPI = weatherAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WebAPI = webAPI(p_pyhouse_obj)
예제 #2
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the computer APIs
     """
     p_pyhouse_obj.APIs.Computer = ComputerAPIs()
     p_pyhouse_obj.APIs.Computer.ComputerAPI = p_api
     p_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.CommunicationsAPI = communicationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.EmailAPI = emailAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.InternetAPI = internetAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.NodesAPI = nodesAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WeatherAPI = weatherAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WebAPI = webAPI(p_pyhouse_obj)
예제 #3
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_internet_obj = InternetConnectionData()
     # self.m_dyn_dns_obj = InternetConnectionDynDnsData()
     self.m_api = internetAPI(self.m_pyhouse_obj)
예제 #4
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_internet_obj = InternetConnectionInformation()
     self.m_api = internetAPI(self.m_pyhouse_obj)