original_docstring: Set up the WS66i 6-zone amplifier platform from a config entry.
docstring: Set up the WS66i 6-zone amplifier platform from a config entry.
docstring_tokens: Set up the WS66i 6 - zone amplifier platform from a config entry .
code: async def async_setup_entry(
      hass: HomeAssistant,
      config_entry: ConfigEntry,
      async_add_entities: AddEntitiesCallback,
  ) -> None:
      """Set up the WS66i 6-zone amplifier platform from a config entry."""
      ws66i_data: Ws66iData = hass.data[DOMAIN][config_entry.entry_id]
  
      # Build and add the entities from the data class
      async_add_entities(
          Ws66iZone(
              device=ws66i_data.device,
              ws66i_data=ws66i_data,
              entry_id=config_entry.entry_id,
              zone_id=zone_id,
              data_idx=idx,
              coordinator=ws66i_data.coordinator,
          )
          for idx, zone_id in enumerate(ws66i_data.zones)
      )
code_tokens: async def async_setup_entry ( hass : HomeAssistant , config_entry : ConfigEntry , async_add_entities : AddEntitiesCallback , ) -> None : ws66i_data : Ws66iData = hass . data [ DOMAIN ] [ config_entry . entry_id ] async_add_entities ( Ws66iZone ( device = ws66i_data . device , ws66i_data = ws66i_data , entry_id = config_entry . entry_id , zone_id = zone_id , data_idx = idx , coordinator = ws66i_data . coordinator , ) for idx , zone_id in enumerate ( ws66i_data . zones ) )
short_docstring: Set up the WS66i 6-zone amplifier platform from a config entry.
short_docstring_tokens: Set up the WS66i 6 - zone amplifier platform from a config entry .
comment: """Set up the WS66i 6-zone amplifier platform from a config entry."""$SEP$# Build and add the entities from the data class