Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, xknx):
"""Initialize ConnectRequest object."""
super().__init__(xknx)
self.request_type = None
self.control_endpoint = HPAI()
self.data_endpoint = HPAI()
# KNX layer, 0x02 = TUNNEL_LINKLAYER
self.flags = 0x02
def __init__(self, xknx):
"""Initialize ConnectRequest object."""
super().__init__(xknx)
self.request_type = None
self.control_endpoint = HPAI()
self.data_endpoint = HPAI()
# KNX layer, 0x02 = TUNNEL_LINKLAYER
self.flags = 0x02
def __init__(self, xknx):
"""Initialize DisconnectRequest object."""
super().__init__(xknx)
self.communication_channel_id = 1
self.control_endpoint = HPAI()
def calculated_length(self):
"""Get length of KNX/IP body."""
return 2 + HPAI.LENGTH
def __init__(self, xknx):
"""Initialize SearchRequest object."""
super().__init__(xknx)
self.discovery_endpoint = HPAI(ip_addr="224.0.23.12", port=3671)
def calculated_length(self):
"""Get length of KNX/IP body."""
return HPAI.LENGTH
def calculated_length(self):
"""Get length of KNX/IP body."""
return 2 + HPAI.LENGTH + \
ConnectResponse.CRD_LENGTH
def calculated_length(self):
"""Get length of KNX/IP body."""
return 2 + HPAI.LENGTH
def __init__(self, xknx):
"""Initialize SearchResponse object."""
super().__init__(xknx)
self.control_endpoint = HPAI()
self.dibs = []