<gh_stars>1-10
"""
@name:      Modules/Computer/Communication/communication.py
@author:    <NAME>
@contact:   <EMAIL>
@copyright: (c) 2017-2019 by <NAME>
@note:      Created on Jan 9, 2017
@license:   MIT License
@summary:

"""

__updated__ = '2019-10-11'

# Import system type stuff

# Import PyMh files and modules.
from Modules.Core import logging_pyh as Logger
LOG = Logger.getLogger('PyHouse.Communication  ')


class lightingUtilityComm:

    def read_xml(self, p_pyhouse_obj):
        """Read all the information.
        """
        self.m_count = 0
        l_dict = {}
        try:
            _l_xml = p_pyhouse_obj.Xml.XmlRoot.find('ComputerDivision').find('CommunicationSection')
        except AttributeError as e_err:
            LOG.error('ERROR in read_xml() - {}'.format(e_err))
        return l_dict


class Api:

    def __init__(self, p_pyhouse_obj):
        self.m_pyhouse_obj = p_pyhouse_obj

    def LoadConfig(self):
        """
        """
        LOG.info('Loaded Communication Config.')

    def Start(self):
        pass

    def Stop(self):
        pass

    def SaveConfig(self):
        LOG.info("Saved Communication Config.")

# ## END DBK

"""
@name:      Modules/Computer/Communication/communication.py
@author:    <NAME>
@contact:   <EMAIL>
@copyright: (c) 2017-2019 by <NAME>
@note:      Created on Jan 9, 2017
@license:   MIT License
@summary:

"""

__updated__ = '2019-10-11'

# Import system type stuff

# Import PyMh files and modules.
from Modules.Core import logging_pyh as Logger
LOG = Logger.getLogger('PyHouse.Communication  ')


class lightingUtilityComm:

    def read_xml(self, p_pyhouse_obj):
        """Read all the information.
        """
        self.m_count = 0
        l_dict = {}
        try:
            _l_xml = p_pyhouse_obj.Xml.XmlRoot.find('ComputerDivision').find('CommunicationSection')
        except AttributeError as e_err:
            LOG.error('ERROR in read_xml() - {}'.format(e_err))
        return l_dict


class Api:

    def __init__(self, p_pyhouse_obj):
        self.m_pyhouse_obj = p_pyhouse_obj

    def LoadConfig(self):
        """
        """
        LOG.info('Loaded Communication Config.')

    def Start(self):
        pass

    def Stop(self):
        pass

    def SaveConfig(self):
        LOG.info("Saved Communication Config.")

# ## END DBK
@name:      Modules/Computer/Communication/communication.py @author:    <NAME> @contact:   <EMAIL> @copyright: (c) 2017-2019 by <NAME> @note:      Created on Jan 9, 2017 @license:   MIT License @summary: # Import system type stuff # Import PyMh files and modules. Read all the information. # ## END DBK