def __init__(self, host, port=10025, name=None):
        """
        Initialize MainZone of HkAVR.

        :param host: IP or HOSTNAME.
        :type host: str

        :param port: port.
        :type host: number

        :param name: Device name, if None FriendlyName of device is used.
        :type name: str or None
        """
        self._name = name
        self._host = host
        self._port = port
        # For now only support for main zone
        self._zone = "Main Zone"
        self._mute = STATE_OFF

        self._state = None
        self._power = None
        self._current_source = None
        self._sources = DEFAULT_SOURCES

        self._socket = self._get_new_socket()
def __init__ ( self , host , port = 10025 , name = None ) : self . _name = name self . _host = host self . _port = port self . _zone = "Main Zone" self . _mute = STATE_OFF self . _state = None self . _power = None self . _current_source = None self . _sources = DEFAULT_SOURCES self . _socket = self . _get_new_socket ( )
Initialize MainZone of HkAVR.

        :param host: IP or HOSTNAME.
        :type host: str

        :param port: port.
        :type host: number

        :param name: Device name, if None FriendlyName of device is used.
        :type name: str or None