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)
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()