def __init__(self, p_pyhouse_obj): """ This will initialize much (all?) of the API infrastructure. Note that the Configuration file is NOT read until the following Start() method begins. Also note that the reactor is *NOT* running. """ self.m_pyhouse_obj = p_pyhouse_obj Utility._init_components(p_pyhouse_obj) Utility.init_uuids(p_pyhouse_obj) p_pyhouse_obj.APIs.Computer.ComputerAPI = computerAPI(p_pyhouse_obj) p_pyhouse_obj.APIs.House.HouseAPI = houseAPI(p_pyhouse_obj) PyHouseObj.SetObj(p_pyhouse_obj) LOG.info('Initialized\n==================================================================\n')
def __init__(self, p_pyhouse_obj): """ **NOR** This will initialize much (all?) of the API infrastructure. Note that the Configuration file is NOT read until the following Start() method begins. Also note that the reactor is *NOT* yet running. """ LOG.info('Initializing - Version:{}'.format(__version__)) Utility.init_uuids(p_pyhouse_obj) p_pyhouse_obj.APIs.Computer.ComputerAPI = computerAPI(p_pyhouse_obj) p_pyhouse_obj.APIs.House.HouseAPI = houseAPI(p_pyhouse_obj) PyHouseObj.SetObj(p_pyhouse_obj) Utility._sync_startup_logging(p_pyhouse_obj) self.m_pyhouse_obj = p_pyhouse_obj LOG.info('Initialized.\n==================================================================\n')
def __init__(self, p_pyhouse_obj): """ This will initialize much (all?) of the API infrastructure. Note that the Configuration file is NOT read until the following Start() method begins. Also note that the reactor is *NOT* running. """ self.m_pyhouse_obj = p_pyhouse_obj LOG.info('Initializing') Utility.init_uuids(p_pyhouse_obj) p_pyhouse_obj.APIs.Computer.ComputerAPI = computerAPI(p_pyhouse_obj) p_pyhouse_obj.APIs.House.HouseAPI = houseAPI(p_pyhouse_obj) PyHouseObj.SetObj(p_pyhouse_obj) Utility._sync_startup_logging(self.m_pyhouse_obj) LOG.info('Initialized\n==================================================================\n')
def setUp(self, p_root): self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root) self.m_xml = SetupPyHouseObj().BuildXml(p_root) self.m_api = houseAPI(self.m_pyhouse_obj)
def setUp(self): SetupMixin.setUp(self, ET.fromstring(XML_LONG)) self.m_api = houseAPI(self.m_pyhouse_obj)
def test_02_House(self): l_topic = list(['house', '']) l_payload = {"DateTime": DATE_TIME, "Sender": SENDER} self.m_pyhouse_obj.APIs.HouseAPI = houseAPI(self.m_pyhouse_obj) # print("\n\tTopic: {}\n\tPayload: {}".format(l_topic, l_payload)) l_log = mqtt_actions(self.m_pyhouse_obj).mqtt_dispatch(l_topic, l_payload)