Ejemplo n.º 1
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the house APIs
     """
     p_pyhouse_obj.APIs.House.HouseAPI = p_api
     p_pyhouse_obj.APIs.House.EntertainmentAPI = entertainmentAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.FamilyAPI = familyAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.HvacAPI = hvacAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.IrrigationAPI = irrigationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.LightingAPI = lightingAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.PoolAPI = poolAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.ScheduleAPI = scheduleAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.SecurityAPI = securityAPI(p_pyhouse_obj)
Ejemplo n.º 2
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = hvacAPI(self.m_pyhouse_obj)
     self.m_thermostat_obj = ThermostatData()
Ejemplo n.º 3
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = hvacAPI(self.m_pyhouse_obj)
     self.m_thermostat_obj = ThermostatData()