original_docstring: Set up the LCN climate platform.
docstring: Set up the LCN climate platform.
docstring_tokens: Set up the LCN climate platform .
code: async def async_setup_platform(hass, hass_config, async_add_entities,
                                 discovery_info=None):
      """Set up the LCN climate platform."""
      if discovery_info is None:
          return
  
      devices = []
      for config in discovery_info:
          address, connection_id = config[CONF_ADDRESS]
          addr = pypck.lcn_addr.LcnAddr(*address)
          connections = hass.data[DATA_LCN][CONF_CONNECTIONS]
          connection = get_connection(connections, connection_id)
          address_connection = connection.get_address_conn(addr)
  
          devices.append(LcnClimate(config, address_connection))
  
      async_add_entities(devices)
code_tokens: async def async_setup_platform ( hass , hass_config , async_add_entities , discovery_info = None ) : if discovery_info is None : return devices = [ ] for config in discovery_info : address , connection_id = config [ CONF_ADDRESS ] addr = pypck . lcn_addr . LcnAddr ( * address ) connections = hass . data [ DATA_LCN ] [ CONF_CONNECTIONS ] connection = get_connection ( connections , connection_id ) address_connection = connection . get_address_conn ( addr ) devices . append ( LcnClimate ( config , address_connection ) ) async_add_entities ( devices )
short_docstring: Set up the LCN climate platform.
short_docstring_tokens: Set up the LCN climate platform .
comment: """Set up the LCN climate platform."""